Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gl/gl_surface.h" | 5 #include "ui/gl/gl_surface.h" |
| 6 | 6 |
| 7 namespace gfx { | 7 namespace gfx { |
| 8 | 8 |
| 9 class GL_EXPORT GLSurfaceIOS : public GLSurface { | 9 class GL_EXPORT GLSurfaceIOS : public GLSurface { |
| 10 public: | 10 public: |
| 11 GLSurfaceIOS(gfx::AcceleratedWidget widget, | 11 GLSurfaceIOS(gfx::AcceleratedWidget widget, |
| 12 const gfx::SurfaceConfiguration requested_configuration); | 12 const gfx::SurfaceConfiguration requested_configuration); |
| 13 | 13 |
| 14 bool SwapBuffers() override; | 14 bool SwapBuffers() override; |
| 15 void Destroy() override; | 15 void Destroy() override; |
| 16 bool IsOffscreen() override; | 16 bool IsOffscreen() override; |
| 17 gfx::Size GetSize() override; | 17 gfx::Size GetSize() override; |
| 18 void* GetHandle() override; | 18 void* GetHandle() override; |
| 19 bool OnMakeCurrent(GLContext* context) override; | 19 bool OnMakeCurrent(GLContext* context) override; |
| 20 unsigned int GetBackingFrameBufferObject() override; | |
|
iansf
2015/06/16 01:21:27
Is there a corresponding change in gl_surface.h th
| |
| 20 | 21 |
| 21 private: | 22 private: |
| 22 gfx::AcceleratedWidget widget_; | 23 gfx::AcceleratedWidget widget_; |
| 23 uint32_t framebuffer_; | 24 uint32_t framebuffer_; |
| 24 uint32_t colorbuffer_; | 25 uint32_t colorbuffer_; |
| 25 uint32_t depthbuffer_; | 26 uint32_t depthbuffer_; |
| 26 uint32_t stencilbuffer_; | 27 uint32_t stencilbuffer_; |
| 27 uint32_t depth_stencil_packed_buffer_; | 28 uint32_t depth_stencil_packed_buffer_; |
| 28 Size last_configured_size_; | 29 Size last_configured_size_; |
| 29 bool framebuffer_setup_complete_; | 30 bool framebuffer_setup_complete_; |
| 30 void SetupFramebufferIfNecessary(); | 31 void SetupFramebufferIfNecessary(); |
| 31 | 32 |
| 32 DISALLOW_COPY_AND_ASSIGN(GLSurfaceIOS); | 33 DISALLOW_COPY_AND_ASSIGN(GLSurfaceIOS); |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 } // namespace gfx | 36 } // namespace gfx |
| OLD | NEW |