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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 | « ui/message_center/test/run_all_unittests.cc ('k') | ui/ozone/demo/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_GL_RENDERER_H_ 5 #ifndef UI_OZONE_DEMO_GL_RENDERER_H_
6 #define UI_OZONE_DEMO_GL_RENDERER_H_ 6 #define UI_OZONE_DEMO_GL_RENDERER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "ui/gfx/swap_result.h" 11 #include "ui/gfx/swap_result.h"
12 #include "ui/ozone/demo/renderer_base.h" 12 #include "ui/ozone/demo/renderer_base.h"
13 13
14 namespace gfx { 14 namespace gl {
15 class GLContext; 15 class GLContext;
16 class GLSurface; 16 class GLSurface;
17 } // namespace gfx 17 } // namespace gl
18 18
19 namespace ui { 19 namespace ui {
20 20
21 class GlRenderer : public RendererBase { 21 class GlRenderer : public RendererBase {
22 public: 22 public:
23 GlRenderer(gfx::AcceleratedWidget widget, 23 GlRenderer(gfx::AcceleratedWidget widget,
24 const scoped_refptr<gfx::GLSurface>& surface, 24 const scoped_refptr<gl::GLSurface>& surface,
25 const gfx::Size& size); 25 const gfx::Size& size);
26 ~GlRenderer() override; 26 ~GlRenderer() override;
27 27
28 // Renderer: 28 // Renderer:
29 bool Initialize() override; 29 bool Initialize() override;
30 30
31 protected: 31 protected:
32 virtual void RenderFrame(); 32 virtual void RenderFrame();
33 virtual void PostRenderFrameTask(gfx::SwapResult result); 33 virtual void PostRenderFrameTask(gfx::SwapResult result);
34 34
35 scoped_refptr<gfx::GLSurface> surface_; 35 scoped_refptr<gl::GLSurface> surface_;
36 scoped_refptr<gfx::GLContext> context_; 36 scoped_refptr<gl::GLContext> context_;
37 37
38 private: 38 private:
39 base::WeakPtrFactory<GlRenderer> weak_ptr_factory_; 39 base::WeakPtrFactory<GlRenderer> weak_ptr_factory_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(GlRenderer); 41 DISALLOW_COPY_AND_ASSIGN(GlRenderer);
42 }; 42 };
43 43
44 } // namespace ui 44 } // namespace ui
45 45
46 #endif // UI_OZONE_DEMO_GL_RENDERER_H_ 46 #endif // UI_OZONE_DEMO_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « ui/message_center/test/run_all_unittests.cc ('k') | ui/ozone/demo/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698