| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_DIRECT_RENDERER_H_ | 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_ |
| 6 #define CC_OUTPUT_DIRECT_RENDERER_H_ | 6 #define CC_OUTPUT_DIRECT_RENDERER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad); | 98 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad); |
| 99 void SetScissorStateForQuadWithRenderPassScissor( | 99 void SetScissorStateForQuadWithRenderPassScissor( |
| 100 const DrawingFrame* frame, | 100 const DrawingFrame* frame, |
| 101 const DrawQuad& quad, | 101 const DrawQuad& quad, |
| 102 const gfx::RectF& render_pass_scissor, | 102 const gfx::RectF& render_pass_scissor, |
| 103 bool* should_skip_quad); | 103 bool* should_skip_quad); |
| 104 void SetScissorTestRectInDrawSpace(const DrawingFrame* frame, | 104 void SetScissorTestRectInDrawSpace(const DrawingFrame* frame, |
| 105 gfx::RectF draw_space_rect); | 105 gfx::RectF draw_space_rect); |
| 106 | 106 |
| 107 static gfx::Size RenderPassTextureSize(const RenderPass* render_pass); | 107 static gfx::Size RenderPassTextureSize(const RenderPass* render_pass); |
| 108 static GLenum RenderPassTextureFormat(const RenderPass* render_pass); | 108 static ResourceFormat RenderPassTextureFormat(const RenderPass* render_pass); |
| 109 | 109 |
| 110 void DrawRenderPass(DrawingFrame* frame, | 110 void DrawRenderPass(DrawingFrame* frame, |
| 111 const RenderPass* render_pass, | 111 const RenderPass* render_pass, |
| 112 bool allow_partial_swap); | 112 bool allow_partial_swap); |
| 113 bool UseRenderPass(DrawingFrame* frame, const RenderPass* render_pass); | 113 bool UseRenderPass(DrawingFrame* frame, const RenderPass* render_pass); |
| 114 | 114 |
| 115 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0; | 115 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0; |
| 116 virtual bool BindFramebufferToTexture(DrawingFrame* frame, | 116 virtual bool BindFramebufferToTexture(DrawingFrame* frame, |
| 117 const ScopedResource* resource, | 117 const ScopedResource* resource, |
| 118 gfx::Rect target_rect) = 0; | 118 gfx::Rect target_rect) = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 gfx::Vector2d enlarge_pass_texture_amount_; | 150 gfx::Vector2d enlarge_pass_texture_amount_; |
| 151 | 151 |
| 152 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 152 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace cc | 155 } // namespace cc |
| 156 | 156 |
| 157 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 157 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
| OLD | NEW |