1 // 2 // Copyright 2015 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // SurfaceGL.h: Defines the class interface for SurfaceGL. 8 9 #ifndef LIBANGLE_RENDERER_GL_SURFACEGL_H_ 10 #define LIBANGLE_RENDERER_GL_SURFACEGL_H_ 11 12 #include "libANGLE/renderer/SurfaceImpl.h" 13 14 namespace rx 15 { 16 17 class SurfaceGL : public SurfaceImpl 18 { 19 public: 20 SurfaceGL(const egl::SurfaceState &state); 21 ~SurfaceGL() override; 22 23 egl::Error getSyncValues(EGLuint64KHR *ust, EGLuint64KHR *msc, EGLuint64KHR *sbc) override; 24 egl::Error getMscRate(EGLint *numerator, EGLint *denominator) override; 25 26 angle::Result initializeContents(const gl::Context *context, 27 GLenum binding, 28 const gl::ImageIndex &imageIndex) override; 29 30 virtual bool hasEmulatedAlphaChannel() const; 31 32 egl::Error attachToFramebuffer(const gl::Context *context, 33 gl::Framebuffer *framebuffer) override; 34 egl::Error detachFromFramebuffer(const gl::Context *context, 35 gl::Framebuffer *framebuffer) override; 36 }; 37 38 } // namespace rx 39 40 #endif // LIBANGLE_RENDERER_GL_SURFACEGL_H_ 41