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

Side by Side Diff: ui/gfx/compositor/compositor_gl.cc

Issue 6722026: Refactor: Move app/gfx/gl ==> ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try removing a dep. Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/compositor.gyp ('k') | ui/gfx/gl/generate_bindings.py » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/gfx/compositor/compositor.h" 5 #include "ui/gfx/compositor/compositor.h"
6 6
7 #include "app/gfx/gl/gl_context.h"
8 #include "app/gfx/gl/gl_bindings.h"
9 #include "app/gfx/gl/gl_implementation.h"
10 #include "base/basictypes.h" 7 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
12 #include "base/logging.h" 9 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
14 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 #include "ui/gfx/gl/gl_context.h"
13 #include "ui/gfx/gl/gl_bindings.h"
14 #include "ui/gfx/gl/gl_implementation.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class CompositorGL : public Compositor { 18 class CompositorGL : public Compositor {
19 public: 19 public:
20 explicit CompositorGL(gfx::AcceleratedWidget widget); 20 explicit CompositorGL(gfx::AcceleratedWidget widget);
21 21
22 private: 22 private:
23 // Overridden from Compositor. 23 // Overridden from Compositor.
24 void NotifyStart() OVERRIDE; 24 void NotifyStart() OVERRIDE;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 // static 74 // static
75 Compositor* Compositor::Create(gfx::AcceleratedWidget widget) { 75 Compositor* Compositor::Create(gfx::AcceleratedWidget widget) {
76 if (gfx::GetGLImplementation() != gfx::kGLImplementationNone) 76 if (gfx::GetGLImplementation() != gfx::kGLImplementationNone)
77 return new CompositorGL(widget); 77 return new CompositorGL(widget);
78 return NULL; 78 return NULL;
79 } 79 }
80 80
81 } // namespace ui 81 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/compositor.gyp ('k') | ui/gfx/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698