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

Side by Side Diff: ui/ozone/demo/surfaceless_gl_renderer.h

Issue 975733004: [Ozone-Demo] Update Surfaceless renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_gn
Patch Set: Created 5 years, 9 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 | « ui/ozone/demo/gl_renderer.cc ('k') | ui/ozone/demo/surfaceless_gl_renderer.cc » ('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 #ifndef UI_OZONE_DEMO_SURFACELESS_GL_RENDERER_H_ 5 #ifndef UI_OZONE_DEMO_SURFACELESS_GL_RENDERER_H_
6 #define UI_OZONE_DEMO_SURFACELESS_GL_RENDERER_H_ 6 #define UI_OZONE_DEMO_SURFACELESS_GL_RENDERER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/ozone/demo/gl_renderer.h" 9 #include "ui/ozone/demo/gl_renderer.h"
10 10
(...skipping 14 matching lines...) Expand all
25 ~SurfacelessGlRenderer() override; 25 ~SurfacelessGlRenderer() override;
26 26
27 // Renderer: 27 // Renderer:
28 bool Initialize() override; 28 bool Initialize() override;
29 void RenderFrame() override; 29 void RenderFrame() override;
30 30
31 private: 31 private:
32 // Called by swap buffers when the actual swap finished. 32 // Called by swap buffers when the actual swap finished.
33 void OnSwapBuffersAck(); 33 void OnSwapBuffersAck();
34 34
35 // GlRenderer:
36 scoped_refptr<gfx::GLSurface> CreateSurface() override;
37
35 class BufferWrapper { 38 class BufferWrapper {
36 public: 39 public:
37 BufferWrapper(); 40 BufferWrapper();
38 ~BufferWrapper(); 41 ~BufferWrapper();
39 42
40 bool Initialize(GpuMemoryBufferFactoryOzoneNativeBuffer* buffer_factory, 43 bool Initialize(GpuMemoryBufferFactoryOzoneNativeBuffer* buffer_factory,
41 gfx::AcceleratedWidget widget, 44 gfx::AcceleratedWidget widget,
42 const gfx::Size& size); 45 const gfx::Size& size);
43 void BindFramebuffer(); 46 void BindFramebuffer();
44 void SchedulePlane(); 47 void SchedulePlane();
(...skipping 14 matching lines...) Expand all
59 bool is_swapping_buffers_; 62 bool is_swapping_buffers_;
60 63
61 base::WeakPtrFactory<SurfacelessGlRenderer> weak_ptr_factory_; 64 base::WeakPtrFactory<SurfacelessGlRenderer> weak_ptr_factory_;
62 65
63 DISALLOW_COPY_AND_ASSIGN(SurfacelessGlRenderer); 66 DISALLOW_COPY_AND_ASSIGN(SurfacelessGlRenderer);
64 }; 67 };
65 68
66 } // namespace ui 69 } // namespace ui
67 70
68 #endif // UI_OZONE_DEMO_SURFACELESS_GL_RENDERER_H_ 71 #endif // UI_OZONE_DEMO_SURFACELESS_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « ui/ozone/demo/gl_renderer.cc ('k') | ui/ozone/demo/surfaceless_gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698