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 <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const gfx::Rect& device_rect); | 78 const gfx::Rect& device_rect); |
79 void ReleaseRenderPassTextures(); | 79 void ReleaseRenderPassTextures(); |
80 enum BoundGeometry { NO_BINDING, SHARED_BINDING, CLIPPED_BINDING }; | 80 enum BoundGeometry { NO_BINDING, SHARED_BINDING, CLIPPED_BINDING }; |
81 void PrepareGeometry(BoundGeometry geometry_to_bind); | 81 void PrepareGeometry(BoundGeometry geometry_to_bind); |
82 void SetStencilEnabled(bool enabled); | 82 void SetStencilEnabled(bool enabled); |
83 bool stencil_enabled() const { return stencil_shadow_; } | 83 bool stencil_enabled() const { return stencil_shadow_; } |
84 void SetBlendEnabled(bool enabled); | 84 void SetBlendEnabled(bool enabled); |
85 bool blend_enabled() const { return blend_shadow_; } | 85 bool blend_enabled() const { return blend_shadow_; } |
86 | 86 |
87 bool CanPartialSwap() override; | 87 bool CanPartialSwap() override; |
| 88 ResourceFormat BackbufferFormat() const override; |
88 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 89 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
89 bool BindFramebufferToTexture(DrawingFrame* frame, | 90 bool BindFramebufferToTexture(DrawingFrame* frame, |
90 const ScopedResource* resource) override; | 91 const ScopedResource* resource) override; |
91 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; | 92 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; |
92 void PrepareSurfaceForPass(DrawingFrame* frame, | 93 void PrepareSurfaceForPass(DrawingFrame* frame, |
93 SurfaceInitializationMode initialization_mode, | 94 SurfaceInitializationMode initialization_mode, |
94 const gfx::Rect& render_pass_scissor) override; | 95 const gfx::Rect& render_pass_scissor) override; |
95 void DoDrawQuad(DrawingFrame* frame, | 96 void DoDrawQuad(DrawingFrame* frame, |
96 const class DrawQuad*, | 97 const class DrawQuad*, |
97 const gfx::QuadF* draw_region) override; | 98 const gfx::QuadF* draw_region) override; |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 gfx::Size offscreen_stencil_renderbuffer_size_; | 371 gfx::Size offscreen_stencil_renderbuffer_size_; |
371 | 372 |
372 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; | 373 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; |
373 | 374 |
374 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 375 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
375 }; | 376 }; |
376 | 377 |
377 } // namespace cc | 378 } // namespace cc |
378 | 379 |
379 #endif // CC_OUTPUT_GL_RENDERER_H_ | 380 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |