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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <unordered_map> | |
10 #include <utility> | 9 #include <utility> |
11 #include <vector> | 10 #include <vector> |
12 | 11 |
13 #include "base/auto_reset.h" | 12 #include "base/auto_reset.h" |
14 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
15 #include "base/numerics/safe_conversions.h" | 14 #include "base/numerics/safe_conversions.h" |
16 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
17 #include "cc/base/math_util.h" | 16 #include "cc/base/math_util.h" |
18 #include "cc/output/bsp_tree.h" | 17 #include "cc/output/bsp_tree.h" |
19 #include "cc/output/bsp_walk_action.h" | 18 #include "cc/output/bsp_walk_action.h" |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { | 640 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { |
642 return render_pass->output_rect.size(); | 641 return render_pass->output_rect.size(); |
643 } | 642 } |
644 | 643 |
645 void DirectRenderer::SetCurrentFrameForTesting(const DrawingFrame& frame) { | 644 void DirectRenderer::SetCurrentFrameForTesting(const DrawingFrame& frame) { |
646 current_frame_valid_ = true; | 645 current_frame_valid_ = true; |
647 current_frame_ = frame; | 646 current_frame_ = frame; |
648 } | 647 } |
649 | 648 |
650 } // namespace cc | 649 } // namespace cc |
OLD | NEW |