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 #include "cc/output/direct_renderer.h" | 5 #include "cc/output/direct_renderer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const gfx::Rect& device_clip_rect, | 198 const gfx::Rect& device_clip_rect, |
199 bool disable_picture_quad_image_filtering) { | 199 bool disable_picture_quad_image_filtering) { |
200 TRACE_EVENT0("cc", "DirectRenderer::DrawFrame"); | 200 TRACE_EVENT0("cc", "DirectRenderer::DrawFrame"); |
201 UMA_HISTOGRAM_COUNTS("Renderer4.renderPassCount", | 201 UMA_HISTOGRAM_COUNTS("Renderer4.renderPassCount", |
202 render_passes_in_draw_order->size()); | 202 render_passes_in_draw_order->size()); |
203 | 203 |
204 const RenderPass* root_render_pass = render_passes_in_draw_order->back(); | 204 const RenderPass* root_render_pass = render_passes_in_draw_order->back(); |
205 DCHECK(root_render_pass); | 205 DCHECK(root_render_pass); |
206 | 206 |
207 DrawingFrame frame; | 207 DrawingFrame frame; |
| 208 frame.render_passes_in_draw_order = render_passes_in_draw_order; |
208 frame.root_render_pass = root_render_pass; | 209 frame.root_render_pass = root_render_pass; |
209 frame.root_damage_rect = Capabilities().using_partial_swap | 210 frame.root_damage_rect = Capabilities().using_partial_swap |
210 ? root_render_pass->damage_rect | 211 ? root_render_pass->damage_rect |
211 : root_render_pass->output_rect; | 212 : root_render_pass->output_rect; |
212 frame.root_damage_rect.Intersect(gfx::Rect(device_viewport_rect.size())); | 213 frame.root_damage_rect.Intersect(gfx::Rect(device_viewport_rect.size())); |
213 frame.device_viewport_rect = device_viewport_rect; | 214 frame.device_viewport_rect = device_viewport_rect; |
214 frame.device_clip_rect = device_clip_rect; | 215 frame.device_clip_rect = device_clip_rect; |
215 frame.disable_picture_quad_image_filtering = | 216 frame.disable_picture_quad_image_filtering = |
216 disable_picture_quad_image_filtering; | 217 disable_picture_quad_image_filtering; |
217 | 218 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 ScopedResource* texture = render_pass_textures_.get(id); | 420 ScopedResource* texture = render_pass_textures_.get(id); |
420 return texture && texture->id(); | 421 return texture && texture->id(); |
421 } | 422 } |
422 | 423 |
423 // static | 424 // static |
424 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { | 425 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { |
425 return render_pass->output_rect.size(); | 426 return render_pass->output_rect.size(); |
426 } | 427 } |
427 | 428 |
428 } // namespace cc | 429 } // namespace cc |
OLD | NEW |