| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 void MakeCurrent(); | 104 void MakeCurrent(); |
| 105 gfx::Size GetSize(); | 105 gfx::Size GetSize(); |
| 106 | 106 |
| 107 protected: | 107 protected: |
| 108 virtual void OnWidgetSizeChanged() OVERRIDE; | 108 virtual void OnWidgetSizeChanged() OVERRIDE; |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 // Overridden from Compositor. | 111 // Overridden from Compositor. |
| 112 virtual Texture* CreateTexture() OVERRIDE; | 112 virtual Texture* CreateTexture() OVERRIDE; |
| 113 virtual void NotifyStart() OVERRIDE; | 113 virtual void OnNotifyStart() OVERRIDE; |
| 114 virtual void NotifyEnd() OVERRIDE; | 114 virtual void OnNotifyEnd() OVERRIDE; |
| 115 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; | 115 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; |
| 116 virtual void SchedulePaint() OVERRIDE; | 116 virtual void SchedulePaint() OVERRIDE; |
| 117 | 117 |
| 118 // The GL context used for compositing. | 118 // The GL context used for compositing. |
| 119 scoped_refptr<gfx::GLSurface> gl_surface_; | 119 scoped_refptr<gfx::GLSurface> gl_surface_; |
| 120 scoped_refptr<gfx::GLContext> gl_context_; | 120 scoped_refptr<gfx::GLContext> gl_context_; |
| 121 | 121 |
| 122 // Keep track of whether compositing has started or not. | 122 // Keep track of whether compositing has started or not. |
| 123 bool started_; | 123 bool started_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(CompositorGL); | 125 DISALLOW_COPY_AND_ASSIGN(CompositorGL); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace ui | 128 } // namespace ui |
| 129 | 129 |
| 130 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ | 130 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ |
| OLD | NEW |