| 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 "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool is_complete_; | 72 bool is_complete_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(CachedResource); | 74 DISALLOW_COPY_AND_ASSIGN(CachedResource); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 static gfx::RectF QuadVertexRect(); | 77 static gfx::RectF QuadVertexRect(); |
| 78 static void QuadRectTransform(gfx::Transform* quad_rect_transform, | 78 static void QuadRectTransform(gfx::Transform* quad_rect_transform, |
| 79 const gfx::Transform& quad_transform, | 79 const gfx::Transform& quad_transform, |
| 80 const gfx::RectF& quad_rect); | 80 const gfx::RectF& quad_rect); |
| 81 static void InitializeMatrices(DrawingFrame* frame, | 81 static void InitializeMatrices(DrawingFrame* frame, |
| 82 gfx::Vector2d offset, |
| 82 gfx::Rect draw_rect, | 83 gfx::Rect draw_rect, |
| 83 bool flip_y); | 84 bool flip_y); |
| 84 static gfx::Rect MoveScissorToWindowSpace(const DrawingFrame* frame, | 85 gfx::Rect MoveScissorToWindowSpace(const DrawingFrame* frame, |
| 85 const gfx::RectF& scissor_rect); | 86 const gfx::RectF& scissor_rect); |
| 86 static gfx::RectF ComputeScissorRectForRenderPass(const DrawingFrame* frame); | 87 static gfx::RectF ComputeScissorRectForRenderPass(const DrawingFrame* frame); |
| 87 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad); | 88 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad); |
| 88 void SetScissorStateForQuadWithRenderPassScissor( | 89 void SetScissorStateForQuadWithRenderPassScissor( |
| 89 const DrawingFrame* frame, | 90 const DrawingFrame* frame, |
| 90 const DrawQuad& quad, | 91 const DrawQuad& quad, |
| 91 const gfx::RectF& render_pass_scissor, | 92 const gfx::RectF& render_pass_scissor, |
| 92 bool* should_skip_quad); | 93 bool* should_skip_quad); |
| 93 | 94 |
| 94 static gfx::Size RenderPassTextureSize(const RenderPass* render_pass); | 95 static gfx::Size RenderPassTextureSize(const RenderPass* render_pass); |
| 95 static GLenum RenderPassTextureFormat(const RenderPass* render_pass); | 96 static GLenum RenderPassTextureFormat(const RenderPass* render_pass); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 123 | 124 |
| 124 private: | 125 private: |
| 125 gfx::Vector2d enlarge_pass_texture_amount_; | 126 gfx::Vector2d enlarge_pass_texture_amount_; |
| 126 | 127 |
| 127 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 128 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 } // namespace cc | 131 } // namespace cc |
| 131 | 132 |
| 132 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 133 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
| OLD | NEW |