Edit

kc3-lang/angle/src/libANGLE/renderer/SurfaceImpl.cpp

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2015-01-20 13:54:30
    Hash : ba887d90
    Message : Store mShareHandle in SurfaceD3D. The type of the share handle depends on the implementation. BUG=angle:658 Change-Id: Id801f3d0c1e3def7cae5cbd88e7a7032b2f6d8fa Reviewed-on: https://chromium-review.googlesource.com/242050 Reviewed-by: Brandon Jones <bajones@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>

  • src/libANGLE/renderer/SurfaceImpl.cpp
  • //
    // Copyright (c) 2002-2014 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.
    //
    
    // SurfaceImpl.cpp: Implementation of Surface stub method class
    
    #include "libANGLE/renderer/SurfaceImpl.h"
    
    #include "libANGLE/Config.h"
    
    namespace rx
    {
    
    SurfaceImpl::SurfaceImpl(egl::Display *display, const egl::Config *config,
                             EGLint fixedSize, EGLint postSubBufferSupported, EGLenum textureFormat,
                             EGLenum textureType)
        : mDisplay(display),
          mConfig(config),
          mFixedSize(fixedSize),
          mPostSubBufferSupported(postSubBufferSupported),
          mTextureFormat(textureFormat),
          mTextureTarget(textureType)
    {
    }
    
    SurfaceImpl::~SurfaceImpl()
    {
    }
    
    EGLenum SurfaceImpl::getFormat() const
    {
        return mConfig->renderTargetFormat;
    }
    
    }