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 "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_vector.h" | 10 #include "cc/base/scoped_ptr_vector.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 bool stencil_enabled() const { return stencil_shadow_; } | 110 bool stencil_enabled() const { return stencil_shadow_; } |
111 void SetBlendEnabled(bool enabled); | 111 void SetBlendEnabled(bool enabled); |
112 bool blend_enabled() const { return blend_shadow_; } | 112 bool blend_enabled() const { return blend_shadow_; } |
113 | 113 |
114 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; | 114 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; |
115 virtual bool BindFramebufferToTexture(DrawingFrame* frame, | 115 virtual bool BindFramebufferToTexture(DrawingFrame* frame, |
116 const ScopedResource* resource, | 116 const ScopedResource* resource, |
117 gfx::Rect target_rect) OVERRIDE; | 117 gfx::Rect target_rect) OVERRIDE; |
118 virtual void SetDrawViewport(gfx::Rect window_space_viewport) OVERRIDE; | 118 virtual void SetDrawViewport(gfx::Rect window_space_viewport) OVERRIDE; |
119 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; | 119 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; |
120 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE; | 120 virtual void DiscardPixels(bool has_external_stencil_test, |
| 121 bool draw_rect_covers_full_surface) OVERRIDE; |
| 122 virtual void ClearFramebuffer(DrawingFrame* frame, |
| 123 bool has_external_stencil_test) OVERRIDE; |
121 virtual void DoDrawQuad(DrawingFrame* frame, const class DrawQuad*) OVERRIDE; | 124 virtual void DoDrawQuad(DrawingFrame* frame, const class DrawQuad*) OVERRIDE; |
122 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; | 125 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; |
123 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; | 126 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; |
124 virtual bool FlippedFramebuffer() const OVERRIDE; | 127 virtual bool FlippedFramebuffer() const OVERRIDE; |
125 virtual void EnsureScissorTestEnabled() OVERRIDE; | 128 virtual void EnsureScissorTestEnabled() OVERRIDE; |
126 virtual void EnsureScissorTestDisabled() OVERRIDE; | 129 virtual void EnsureScissorTestDisabled() OVERRIDE; |
127 virtual void CopyCurrentRenderPassToBitmap( | 130 virtual void CopyCurrentRenderPassToBitmap( |
128 DrawingFrame* frame, | 131 DrawingFrame* frame, |
129 scoped_ptr<CopyOutputRequest> request) OVERRIDE; | 132 scoped_ptr<CopyOutputRequest> request) OVERRIDE; |
130 virtual void FinishDrawingQuadList() OVERRIDE; | 133 virtual void FinishDrawingQuadList() OVERRIDE; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 469 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
467 #define GLC(context, x) \ | 470 #define GLC(context, x) \ |
468 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 471 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
469 #else | 472 #else |
470 #define GLC(context, x) (x) | 473 #define GLC(context, x) (x) |
471 #endif | 474 #endif |
472 | 475 |
473 } // namespace cc | 476 } // namespace cc |
474 | 477 |
475 #endif // CC_OUTPUT_GL_RENDERER_H_ | 478 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |