| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 bool disable_picture_quad_image_filtering; | 53 bool disable_picture_quad_image_filtering; |
| 54 | 54 |
| 55 OverlayCandidateList overlay_list; | 55 OverlayCandidateList overlay_list; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount); | 58 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount); |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 DirectRenderer(RendererClient* client, | 61 DirectRenderer(RendererClient* client, |
| 62 const LayerTreeSettings* settings, | 62 const RendererSettings* settings, |
| 63 OutputSurface* output_surface, | 63 OutputSurface* output_surface, |
| 64 ResourceProvider* resource_provider); | 64 ResourceProvider* resource_provider); |
| 65 | 65 |
| 66 static gfx::RectF QuadVertexRect(); | 66 static gfx::RectF QuadVertexRect(); |
| 67 static void QuadRectTransform(gfx::Transform* quad_rect_transform, | 67 static void QuadRectTransform(gfx::Transform* quad_rect_transform, |
| 68 const gfx::Transform& quad_transform, | 68 const gfx::Transform& quad_transform, |
| 69 const gfx::RectF& quad_rect); | 69 const gfx::RectF& quad_rect); |
| 70 void InitializeViewport(DrawingFrame* frame, | 70 void InitializeViewport(DrawingFrame* frame, |
| 71 const gfx::Rect& draw_rect, | 71 const gfx::Rect& draw_rect, |
| 72 const gfx::Rect& viewport_rect, | 72 const gfx::Rect& viewport_rect, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 gfx::Vector2d enlarge_pass_texture_amount_; | 132 gfx::Vector2d enlarge_pass_texture_amount_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 134 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace cc | 137 } // namespace cc |
| 138 | 138 |
| 139 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 139 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
| OLD | NEW |