| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void InitializeGrContext(); | 95 void InitializeGrContext(); |
| 96 | 96 |
| 97 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } | 97 const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; } |
| 98 const GeometryBinding* SharedGeometry() const { | 98 const GeometryBinding* SharedGeometry() const { |
| 99 return shared_geometry_.get(); | 99 return shared_geometry_.get(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void GetFramebufferPixelsAsync(gfx::Rect rect, | 102 void GetFramebufferPixelsAsync(gfx::Rect rect, |
| 103 scoped_ptr<CopyOutputRequest> request); | 103 scoped_ptr<CopyOutputRequest> request); |
| 104 void GetFramebufferTexture(unsigned texture_id, | 104 void GetFramebufferTexture(unsigned texture_id, |
| 105 unsigned texture_format, | 105 ResourceFormat texture_format, |
| 106 gfx::Rect device_rect); | 106 gfx::Rect device_rect); |
| 107 void ReleaseRenderPassTextures(); | 107 void ReleaseRenderPassTextures(); |
| 108 | 108 |
| 109 void SetStencilEnabled(bool enabled); | 109 void SetStencilEnabled(bool enabled); |
| 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, |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 466 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 467 #define GLC(context, x) \ | 467 #define GLC(context, x) \ |
| 468 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 468 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 469 #else | 469 #else |
| 470 #define GLC(context, x) (x) | 470 #define GLC(context, x) (x) |
| 471 #endif | 471 #endif |
| 472 | 472 |
| 473 } // namespace cc | 473 } // namespace cc |
| 474 | 474 |
| 475 #endif // CC_OUTPUT_GL_RENDERER_H_ | 475 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |