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

Side by Side Diff: cc/gl_renderer.h

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some missed intstuff 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/geometry.h ('k') | cc/gl_renderer.cc » ('j') | cc/layer_quad.h » ('J')
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/checkerboard_draw_quad.h" 8 #include "cc/checkerboard_draw_quad.h"
9 #include "cc/debug_border_draw_quad.h" 9 #include "cc/debug_border_draw_quad.h"
10 #include "cc/direct_renderer.h" 10 #include "cc/direct_renderer.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 virtual void viewportChanged() OVERRIDE; 44 virtual void viewportChanged() OVERRIDE;
45 45
46 // waits for rendering to finish 46 // waits for rendering to finish
47 virtual void finish() OVERRIDE; 47 virtual void finish() OVERRIDE;
48 48
49 virtual void doNoOp() OVERRIDE; 49 virtual void doNoOp() OVERRIDE;
50 // puts backbuffer onscreen 50 // puts backbuffer onscreen
51 virtual bool swapBuffers() OVERRIDE; 51 virtual bool swapBuffers() OVERRIDE;
52 52
53 virtual void getFramebufferPixels(void *pixels, const IntRect&) OVERRIDE; 53 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE;
54 54
55 virtual bool isContextLost() OVERRIDE; 55 virtual bool isContextLost() OVERRIDE;
56 56
57 virtual void setVisible(bool) OVERRIDE; 57 virtual void setVisible(bool) OVERRIDE;
58 58
59 protected: 59 protected:
60 GLRenderer(RendererClient*, ResourceProvider*); 60 GLRenderer(RendererClient*, ResourceProvider*);
61 61
62 static void debugGLCall(WebKit::WebGraphicsContext3D*, const char* command, const char* file, int line); 62 static void debugGLCall(WebKit::WebGraphicsContext3D*, const char* command, const char* file, int line);
63 63
64 bool isFramebufferDiscarded() const { return m_isFramebufferDiscarded; } 64 bool isFramebufferDiscarded() const { return m_isFramebufferDiscarded; }
65 bool initialize(); 65 bool initialize();
66 66
67 const FloatQuad& sharedGeometryQuad() const { return m_sharedGeometryQuad; } 67 const FloatQuad& sharedGeometryQuad() const { return m_sharedGeometryQuad; }
68 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get( ); } 68 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get( ); }
69 69
70 bool getFramebufferTexture(ScopedTexture*, const IntRect& deviceRect); 70 bool getFramebufferTexture(ScopedTexture*, const gfx::Rect& deviceRect);
71 void releaseRenderPassTextures(); 71 void releaseRenderPassTextures();
72 72
73 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; 73 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
74 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE; 74 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE;
75 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; 75 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE;
76 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; 76 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE;
77 virtual void disableScissorTest() OVERRIDE; 77 virtual void disableScissorTest() OVERRIDE;
78 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; 78 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE;
79 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; 79 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE;
80 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; 80 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 #if DEBUG_GL_CALLS && !defined(NDEBUG) 224 #if DEBUG_GL_CALLS && !defined(NDEBUG)
225 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) 225 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__))
226 #else 226 #else
227 #define GLC(context, x) (x) 227 #define GLC(context, x) (x)
228 #endif 228 #endif
229 229
230 230
231 } 231 }
232 232
233 #endif 233 #endif
OLDNEW
« no previous file with comments | « cc/geometry.h ('k') | cc/gl_renderer.cc » ('j') | cc/layer_quad.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698