| 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_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
| 6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/direct_renderer.h" | 9 #include "cc/output/direct_renderer.h" |
| 10 #include "cc/output/gl_renderer_draw_cache.h" | 10 #include "cc/output/gl_renderer_draw_cache.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 gfx::Rect framebuffer_rect) OVERRIDE; | 96 gfx::Rect framebuffer_rect) OVERRIDE; |
| 97 virtual void SetDrawViewportSize(gfx::Size viewport_size) OVERRIDE; | 97 virtual void SetDrawViewportSize(gfx::Size viewport_size) OVERRIDE; |
| 98 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; | 98 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; |
| 99 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE; | 99 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE; |
| 100 virtual void DoDrawQuad(DrawingFrame* frame, const class DrawQuad*) OVERRIDE; | 100 virtual void DoDrawQuad(DrawingFrame* frame, const class DrawQuad*) OVERRIDE; |
| 101 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; | 101 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; |
| 102 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; | 102 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; |
| 103 virtual bool FlippedFramebuffer() const OVERRIDE; | 103 virtual bool FlippedFramebuffer() const OVERRIDE; |
| 104 virtual void EnsureScissorTestEnabled() OVERRIDE; | 104 virtual void EnsureScissorTestEnabled() OVERRIDE; |
| 105 virtual void EnsureScissorTestDisabled() OVERRIDE; | 105 virtual void EnsureScissorTestDisabled() OVERRIDE; |
| 106 virtual void CopyCurrentRenderPassToBitmap(DrawingFrame* frame, |
| 107 SkBitmap* bitmap) OVERRIDE; |
| 106 virtual void FinishDrawingQuadList() OVERRIDE; | 108 virtual void FinishDrawingQuadList() OVERRIDE; |
| 107 | 109 |
| 108 private: | 110 private: |
| 109 friend class GLRendererShaderPixelTest; | 111 friend class GLRendererShaderPixelTest; |
| 110 friend class GLRendererShaderTest; | 112 friend class GLRendererShaderTest; |
| 111 | 113 |
| 112 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); | 114 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); |
| 113 static ManagedMemoryPolicy::PriorityCutoff PriorityCutoff( | 115 static ManagedMemoryPolicy::PriorityCutoff PriorityCutoff( |
| 114 WebKit::WebGraphicsMemoryAllocation::PriorityCutoff priority_cutoff); | 116 WebKit::WebGraphicsMemoryAllocation::PriorityCutoff priority_cutoff); |
| 115 | 117 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 387 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 386 #define GLC(context, x) \ | 388 #define GLC(context, x) \ |
| 387 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 389 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 388 #else | 390 #else |
| 389 #define GLC(context, x) (x) | 391 #define GLC(context, x) (x) |
| 390 #endif | 392 #endif |
| 391 | 393 |
| 392 } // namespace cc | 394 } // namespace cc |
| 393 | 395 |
| 394 #endif // CC_OUTPUT_GL_RENDERER_H_ | 396 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |