Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: ui/gl/gl_surface_ios.h

Issue 1183213007: Fix offscreen rendering on iOS by not assuming that the default window bound framebuffer is 0 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/shell/gpu/rasterizer.cc ('k') | ui/gl/gl_surface_ios.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « sky/shell/gpu/rasterizer.cc ('k') | ui/gl/gl_surface_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698