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

Side by Side Diff: cc/gl_renderer.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | « cc/frame_rate_controller.h ('k') | cc/heads_up_display_layer_impl.h » ('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 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 CCRendererGL_h 5 #ifndef CCRendererGL_h
6 #define CCRendererGL_h 6 #define CCRendererGL_h
7 7
8 #include "cc/cc_export.h"
8 #include "cc/checkerboard_draw_quad.h" 9 #include "cc/checkerboard_draw_quad.h"
9 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
10 #include "cc/direct_renderer.h" 11 #include "cc/direct_renderer.h"
11 #include "cc/io_surface_draw_quad.h" 12 #include "cc/io_surface_draw_quad.h"
12 #include "cc/render_pass_draw_quad.h" 13 #include "cc/render_pass_draw_quad.h"
13 #include "cc/renderer.h" 14 #include "cc/renderer.h"
14 #include "cc/solid_color_draw_quad.h" 15 #include "cc/solid_color_draw_quad.h"
15 #include "cc/tile_draw_quad.h" 16 #include "cc/tile_draw_quad.h"
16 #include "cc/yuv_video_draw_quad.h" 17 #include "cc/yuv_video_draw_quad.h"
17 18
18 namespace WebKit { 19 namespace WebKit {
19 class WebGraphicsContext3D; 20 class WebGraphicsContext3D;
20 } 21 }
21 22
22 namespace cc { 23 namespace cc {
23 24
24 class ScopedTexture; 25 class ScopedTexture;
25 class StreamVideoDrawQuad; 26 class StreamVideoDrawQuad;
26 class TextureDrawQuad; 27 class TextureDrawQuad;
27 class GeometryBinding; 28 class GeometryBinding;
28 class ScopedEnsureFramebufferAllocation; 29 class ScopedEnsureFramebufferAllocation;
29 30
30 // Class that handles drawing of composited render layers using GL. 31 // Class that handles drawing of composited render layers using GL.
31 class GLRenderer : public DirectRenderer, 32 class CC_EXPORT GLRenderer : public DirectRenderer,
32 public WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffers CompleteCallbackCHROMIUM, 33 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext 3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM),
33 public WebKit::WebGraphicsContext3D::WebGraphicsMemoryAlloc ationChangedCallbackCHROMIUM , 34 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext 3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM),
34 public WebKit::WebGraphicsContext3D::WebGraphicsContextLost Callback { 35 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext 3D::WebGraphicsContextLostCallback) {
35 public: 36 public:
36 static scoped_ptr<GLRenderer> create(RendererClient*, ResourceProvider*); 37 static scoped_ptr<GLRenderer> create(RendererClient*, ResourceProvider*);
37 38
38 virtual ~GLRenderer(); 39 virtual ~GLRenderer();
39 40
40 virtual const RendererCapabilities& capabilities() const OVERRIDE; 41 virtual const RendererCapabilities& capabilities() const OVERRIDE;
41 42
42 WebKit::WebGraphicsContext3D* context(); 43 WebKit::WebGraphicsContext3D* context();
43 44
44 virtual void viewportChanged() OVERRIDE; 45 virtual void viewportChanged() OVERRIDE;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 #if DEBUG_GL_CALLS && !defined(NDEBUG) 228 #if DEBUG_GL_CALLS && !defined(NDEBUG)
228 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) 229 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__))
229 #else 230 #else
230 #define GLC(context, x) (x) 231 #define GLC(context, x) (x)
231 #endif 232 #endif
232 233
233 234
234 } 235 }
235 236
236 #endif 237 #endif
OLDNEW
« no previous file with comments | « cc/frame_rate_controller.h ('k') | cc/heads_up_display_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698