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 gfx::Rect device_clip_rect; | 52 gfx::Rect device_clip_rect; |
53 | 53 |
54 gfx::Transform projection_matrix; | 54 gfx::Transform projection_matrix; |
55 gfx::Transform window_matrix; | 55 gfx::Transform window_matrix; |
56 | 56 |
57 ContextProvider* offscreen_context_provider; | 57 ContextProvider* offscreen_context_provider; |
58 | 58 |
59 bool disable_picture_quad_image_filtering; | 59 bool disable_picture_quad_image_filtering; |
60 }; | 60 }; |
61 | 61 |
62 void SetEnlargePassTextureAmountForTesting(gfx::Vector2d amount); | 62 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount); |
63 | 63 |
64 protected: | 64 protected: |
65 DirectRenderer(RendererClient* client, | 65 DirectRenderer(RendererClient* client, |
66 const LayerTreeSettings* settings, | 66 const LayerTreeSettings* settings, |
67 OutputSurface* output_surface, | 67 OutputSurface* output_surface, |
68 ResourceProvider* resource_provider); | 68 ResourceProvider* resource_provider); |
69 | 69 |
70 static gfx::RectF QuadVertexRect(); | 70 static gfx::RectF QuadVertexRect(); |
71 static void QuadRectTransform(gfx::Transform* quad_rect_transform, | 71 static void QuadRectTransform(gfx::Transform* quad_rect_transform, |
72 const gfx::Transform& quad_transform, | 72 const gfx::Transform& quad_transform, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 private: | 136 private: |
137 gfx::Vector2d enlarge_pass_texture_amount_; | 137 gfx::Vector2d enlarge_pass_texture_amount_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 139 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace cc | 142 } // namespace cc |
143 | 143 |
144 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 144 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |