| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 | |
| 6 #ifndef CCRendererGL_h | 5 #ifndef CCRendererGL_h |
| 7 #define CCRendererGL_h | 6 #define CCRendererGL_h |
| 8 | 7 |
| 9 #include "base/basictypes.h" | |
| 10 #include "CCCheckerboardDrawQuad.h" | 8 #include "CCCheckerboardDrawQuad.h" |
| 11 #include "CCDebugBorderDrawQuad.h" | 9 #include "CCDebugBorderDrawQuad.h" |
| 12 #include "CCDirectRenderer.h" | 10 #include "CCDirectRenderer.h" |
| 13 #include "CCIOSurfaceDrawQuad.h" | 11 #include "CCIOSurfaceDrawQuad.h" |
| 14 #include "CCRenderPassDrawQuad.h" | 12 #include "CCRenderPassDrawQuad.h" |
| 15 #include "CCRenderer.h" | 13 #include "CCRenderer.h" |
| 16 #include "CCSolidColorDrawQuad.h" | |
| 17 #include "CCStreamVideoDrawQuad.h" | |
| 18 #include "CCTextureDrawQuad.h" | |
| 19 #include "CCTileDrawQuad.h" | 14 #include "CCTileDrawQuad.h" |
| 20 #include "CCYUVVideoDrawQuad.h" | 15 #include "CCYUVVideoDrawQuad.h" |
| 16 #include "cc/solid_color_draw_quad.h" |
| 21 | 17 |
| 22 namespace WebKit { | 18 namespace WebKit { |
| 23 class WebGraphicsContext3D; | 19 class WebGraphicsContext3D; |
| 24 } | 20 } |
| 25 | 21 |
| 26 namespace cc { | 22 namespace cc { |
| 27 | 23 |
| 28 class CCScopedTexture; | 24 class CCScopedTexture; |
| 25 class CCStreamVideoDrawQuad; |
| 26 class CCTextureDrawQuad; |
| 29 class GeometryBinding; | 27 class GeometryBinding; |
| 30 class ScopedEnsureFramebufferAllocation; | 28 class ScopedEnsureFramebufferAllocation; |
| 31 | 29 |
| 32 // Class that handles drawing of composited render layers using GL. | 30 // Class that handles drawing of composited render layers using GL. |
| 33 class CCRendererGL : public CCDirectRenderer, | 31 class CCRendererGL : public CCDirectRenderer, |
| 34 public WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffers
CompleteCallbackCHROMIUM, | 32 public WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffers
CompleteCallbackCHROMIUM, |
| 35 public WebKit::WebGraphicsContext3D::WebGraphicsMemoryAlloc
ationChangedCallbackCHROMIUM , | 33 public WebKit::WebGraphicsContext3D::WebGraphicsMemoryAlloc
ationChangedCallbackCHROMIUM , |
| 36 public WebKit::WebGraphicsContext3D::WebGraphicsContextLost
Callback { | 34 public WebKit::WebGraphicsContext3D::WebGraphicsContextLost
Callback { |
| 37 public: | 35 public: |
| 38 static scoped_ptr<CCRendererGL> create(CCRendererClient*, CCResourceProvider
*); | 36 static scoped_ptr<CCRendererGL> create(CCRendererClient*, CCResourceProvider
*); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 225 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 228 #define GLC(context, x) (x, CCRendererGL::debugGLCall(&*context, #x, __FILE__, _
_LINE__)) | 226 #define GLC(context, x) (x, CCRendererGL::debugGLCall(&*context, #x, __FILE__, _
_LINE__)) |
| 229 #else | 227 #else |
| 230 #define GLC(context, x) (x) | 228 #define GLC(context, x) (x) |
| 231 #endif | 229 #endif |
| 232 | 230 |
| 233 | 231 |
| 234 } | 232 } |
| 235 | 233 |
| 236 #endif | 234 #endif |
| OLD | NEW |