| 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 #ifndef CC_GL_RENDERER_H_ | 5 #ifndef CC_GL_RENDERER_H_ |
| 6 #define CC_GL_RENDERER_H_ | 6 #define CC_GL_RENDERER_H_ |
| 7 | 7 |
| 8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "cc/checkerboard_draw_quad.h" | 9 #include "cc/checkerboard_draw_quad.h" |
| 10 #include "cc/debug_border_draw_quad.h" | 10 #include "cc/debug_border_draw_quad.h" |
| 11 #include "cc/direct_renderer.h" | 11 #include "cc/direct_renderer.h" |
| 12 #include "cc/gl_renderer_draw_cache.h" | 12 #include "cc/gl_renderer_draw_cache.h" |
| 13 #include "cc/io_surface_draw_quad.h" | 13 #include "cc/io_surface_draw_quad.h" |
| 14 #include "cc/output_surface.h" | |
| 15 #include "cc/render_pass_draw_quad.h" | 14 #include "cc/render_pass_draw_quad.h" |
| 16 #include "cc/renderer.h" | 15 #include "cc/renderer.h" |
| 17 #include "cc/solid_color_draw_quad.h" | 16 #include "cc/solid_color_draw_quad.h" |
| 18 #include "cc/tile_draw_quad.h" | 17 #include "cc/tile_draw_quad.h" |
| 19 #include "cc/yuv_video_draw_quad.h" | 18 #include "cc/yuv_video_draw_quad.h" |
| 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsMemoryAl
location.h" | 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsMemoryAl
location.h" |
| 22 #include "ui/gfx/quad_f.h" | 21 #include "ui/gfx/quad_f.h" |
| 23 | 22 |
| 24 namespace cc { | 23 namespace cc { |
| 25 | 24 |
| 25 class OutputSurface; |
| 26 class ScopedResource; | 26 class ScopedResource; |
| 27 class StreamVideoDrawQuad; | 27 class StreamVideoDrawQuad; |
| 28 class TextureDrawQuad; | 28 class TextureDrawQuad; |
| 29 class GeometryBinding; | 29 class GeometryBinding; |
| 30 class ScopedEnsureFramebufferAllocation; | 30 class ScopedEnsureFramebufferAllocation; |
| 31 | 31 |
| 32 // Class that handles drawing of composited render layers using GL. | 32 // Class that handles drawing of composited render layers using GL. |
| 33 class CC_EXPORT GLRenderer : public DirectRenderer, | 33 class CC_EXPORT GLRenderer : public DirectRenderer, |
| 34 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext
3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM), | 34 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext
3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM), |
| 35 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext
3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM), | 35 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext
3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM), |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 245 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 246 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) | 246 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) |
| 247 #else | 247 #else |
| 248 #define GLC(context, x) (x) | 248 #define GLC(context, x) (x) |
| 249 #endif | 249 #endif |
| 250 | 250 |
| 251 | 251 |
| 252 } | 252 } |
| 253 | 253 |
| 254 #endif // CC_GL_RENDERER_H_ | 254 #endif // CC_GL_RENDERER_H_ |
| OLD | NEW |