| 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" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void setScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; | 80 virtual void setScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; |
| 81 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; | 81 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; |
| 82 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; | 82 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; |
| 83 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; | 83 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; |
| 84 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; | 84 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; |
| 85 virtual bool flippedFramebuffer() const OVERRIDE; | 85 virtual bool flippedFramebuffer() const OVERRIDE; |
| 86 virtual void ensureScissorTestEnabled() OVERRIDE; | 86 virtual void ensureScissorTestEnabled() OVERRIDE; |
| 87 virtual void ensureScissorTestDisabled() OVERRIDE; | 87 virtual void ensureScissorTestDisabled() OVERRIDE; |
| 88 virtual void finishDrawingQuadList() OVERRIDE; | 88 virtual void finishDrawingQuadList() OVERRIDE; |
| 89 | 89 |
| 90 public: |
| 91 void enableScissorForTesting() { ensureScissorTestEnabled(); } |
| 92 |
| 90 private: | 93 private: |
| 91 static void toGLMatrix(float*, const gfx::Transform&); | 94 static void toGLMatrix(float*, const gfx::Transform&); |
| 92 static ManagedMemoryPolicy::PriorityCutoff priorityCutoff(WebKit::WebGraphic
sMemoryAllocation::PriorityCutoff); | 95 static ManagedMemoryPolicy::PriorityCutoff priorityCutoff(WebKit::WebGraphic
sMemoryAllocation::PriorityCutoff); |
| 93 | 96 |
| 94 void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*); | 97 void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*); |
| 95 void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*); | 98 void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*); |
| 96 scoped_ptr<ScopedResource> drawBackgroundFilters( | 99 scoped_ptr<ScopedResource> drawBackgroundFilters( |
| 97 DrawingFrame&, const RenderPassDrawQuad*, | 100 DrawingFrame&, const RenderPassDrawQuad*, |
| 98 const gfx::Transform& contentsDeviceTransform, | 101 const gfx::Transform& contentsDeviceTransform, |
| 99 const gfx::Transform& contentsDeviceTransformInverse); | 102 const gfx::Transform& contentsDeviceTransformInverse); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 246 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 244 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) | 247 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) |
| 245 #else | 248 #else |
| 246 #define GLC(context, x) (x) | 249 #define GLC(context, x) (x) |
| 247 #endif | 250 #endif |
| 248 | 251 |
| 249 | 252 |
| 250 } | 253 } |
| 251 | 254 |
| 252 #endif // CC_GL_RENDERER_H_ | 255 #endif // CC_GL_RENDERER_H_ |
| OLD | NEW |