Edit

kc3-lang/angle/src/libGLESv2/renderer/Image.cpp

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2014-09-30 16:33:51
    Hash : 135570a4
    Message : Clean up ensureRenderTarget(). We can use the same code for this method, with the only difference being in when we determine a texture image holds no pixels. BUG=angle:729 Change-Id: I3356f5deb900c24b1a5c739ce8de99e9ce1371c0 Reviewed-on: https://chromium-review.googlesource.com/219861 Tested-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>

  • src/libGLESv2/renderer/Image.cpp
  • //
    // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    // Image.h: Implements the rx::Image class, an abstract base class for the
    // renderer-specific classes which will define the interface to the underlying
    // surfaces or resources.
    
    #include "libGLESv2/renderer/Image.h"
    
    namespace rx
    {
    
    Image::Image()
    {
        mWidth = 0;
        mHeight = 0;
        mDepth = 0;
        mInternalFormat = GL_NONE;
        mActualFormat = GL_NONE;
        mTarget = GL_NONE;
        mRenderable = false;
        mDirty = false;
    }
    
    }