OLD | NEW |
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 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ | 5 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ |
6 #define UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ | 6 #define UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 virtual Texture* CreateTexture() OVERRIDE; | 107 virtual Texture* CreateTexture() OVERRIDE; |
108 virtual void NotifyStart() OVERRIDE; | 108 virtual void NotifyStart() OVERRIDE; |
109 virtual void NotifyEnd() OVERRIDE; | 109 virtual void NotifyEnd() OVERRIDE; |
110 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; | 110 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; |
111 virtual void SchedulePaint() OVERRIDE; | 111 virtual void SchedulePaint() OVERRIDE; |
112 | 112 |
113 // The GL context used for compositing. | 113 // The GL context used for compositing. |
114 scoped_refptr<gfx::GLSurface> gl_surface_; | 114 scoped_refptr<gfx::GLSurface> gl_surface_; |
115 scoped_refptr<gfx::GLContext> gl_context_; | 115 scoped_refptr<gfx::GLContext> gl_context_; |
116 | 116 |
| 117 // The surface the compositor paints onto. |
| 118 gfx::AcceleratedWidget widget_; |
| 119 |
117 // Keep track of whether compositing has started or not. | 120 // Keep track of whether compositing has started or not. |
118 bool started_; | 121 bool started_; |
119 | 122 |
120 DISALLOW_COPY_AND_ASSIGN(CompositorGL); | 123 DISALLOW_COPY_AND_ASSIGN(CompositorGL); |
121 }; | 124 }; |
122 | 125 |
123 } // namespace ui | 126 } // namespace ui |
124 | 127 |
125 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ | 128 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ |
OLD | NEW |