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; | |
89 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 88 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
90 bool BindFramebufferToTexture(DrawingFrame* frame, | 89 bool BindFramebufferToTexture(DrawingFrame* frame, |
91 const ScopedResource* resource) override; | 90 const ScopedResource* resource) override; |
92 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; | 91 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; |
93 void PrepareSurfaceForPass(DrawingFrame* frame, | 92 void PrepareSurfaceForPass(DrawingFrame* frame, |
94 SurfaceInitializationMode initialization_mode, | 93 SurfaceInitializationMode initialization_mode, |
95 const gfx::Rect& render_pass_scissor) override; | 94 const gfx::Rect& render_pass_scissor) override; |
96 void DoDrawQuad(DrawingFrame* frame, | 95 void DoDrawQuad(DrawingFrame* frame, |
97 const class DrawQuad*, | 96 const class DrawQuad*, |
98 const gfx::QuadF* draw_region) override; | 97 const gfx::QuadF* draw_region) override; |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 gfx::Size offscreen_stencil_renderbuffer_size_; | 370 gfx::Size offscreen_stencil_renderbuffer_size_; |
372 | 371 |
373 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; | 372 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; |
374 | 373 |
375 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 374 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
376 }; | 375 }; |
377 | 376 |
378 } // namespace cc | 377 } // namespace cc |
379 | 378 |
380 #endif // CC_OUTPUT_GL_RENDERER_H_ | 379 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |