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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void InitializeGrContext(); | 96 void InitializeGrContext(); |
97 | 97 |
98 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } | 98 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } |
99 const GeometryBinding* SharedGeometry() const { | 99 const GeometryBinding* SharedGeometry() const { |
100 return shared_geometry_.get(); | 100 return shared_geometry_.get(); |
101 } | 101 } |
102 | 102 |
103 void GetFramebufferPixelsAsync(gfx::Rect rect, | 103 void GetFramebufferPixelsAsync(gfx::Rect rect, |
104 scoped_ptr<CopyOutputRequest> request); | 104 scoped_ptr<CopyOutputRequest> request); |
105 void GetFramebufferTexture(unsigned texture_id, | 105 void GetFramebufferTexture(unsigned texture_id, |
106 unsigned texture_format, | 106 ResourceFormat texture_format, |
107 gfx::Rect device_rect); | 107 gfx::Rect device_rect); |
108 void ReleaseRenderPassTextures(); | 108 void ReleaseRenderPassTextures(); |
109 | 109 |
110 void SetStencilEnabled(bool enabled); | 110 void SetStencilEnabled(bool enabled); |
111 bool stencil_enabled() const { return stencil_shadow_; } | 111 bool stencil_enabled() const { return stencil_shadow_; } |
112 void SetBlendEnabled(bool enabled); | 112 void SetBlendEnabled(bool enabled); |
113 bool blend_enabled() const { return blend_shadow_; } | 113 bool blend_enabled() const { return blend_shadow_; } |
114 | 114 |
115 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; | 115 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; |
116 virtual bool BindFramebufferToTexture(DrawingFrame* frame, | 116 virtual bool BindFramebufferToTexture(DrawingFrame* frame, |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 468 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
469 #define GLC(context, x) \ | 469 #define GLC(context, x) \ |
470 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 470 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
471 #else | 471 #else |
472 #define GLC(context, x) (x) | 472 #define GLC(context, x) (x) |
473 #endif | 473 #endif |
474 | 474 |
475 } // namespace cc | 475 } // namespace cc |
476 | 476 |
477 #endif // CC_OUTPUT_GL_RENDERER_H_ | 477 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |