OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/resources/display_list_recording_source.h" | 5 #include "cc/resources/display_list_recording_source.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "cc/base/region.h" | 9 #include "cc/base/region.h" |
10 #include "cc/layers/content_layer_client.h" | 10 #include "cc/layers/content_layer_client.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 gfx::Size DisplayListRecordingSource::GetSize() const { | 98 gfx::Size DisplayListRecordingSource::GetSize() const { |
99 return size_; | 99 return size_; |
100 } | 100 } |
101 | 101 |
102 void DisplayListRecordingSource::SetEmptyBounds() { | 102 void DisplayListRecordingSource::SetEmptyBounds() { |
103 size_ = gfx::Size(); | 103 size_ = gfx::Size(); |
104 Clear(); | 104 Clear(); |
105 } | 105 } |
106 | 106 |
| 107 void DisplayListRecordingSource::SetMinContentsScale(float min_contents_scale) { |
| 108 } |
| 109 |
| 110 void DisplayListRecordingSource::SetTileGridSize( |
| 111 const gfx::Size& tile_grid_size) { |
| 112 } |
| 113 |
107 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { | 114 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { |
108 slow_down_raster_scale_factor_for_debug_ = factor; | 115 slow_down_raster_scale_factor_for_debug_ = factor; |
109 } | 116 } |
110 | 117 |
111 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { | 118 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { |
112 is_suitable_for_gpu_rasterization_ = false; | 119 is_suitable_for_gpu_rasterization_ = false; |
113 } | 120 } |
114 | 121 |
115 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { | 122 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { |
116 return is_suitable_for_gpu_rasterization_; | 123 return is_suitable_for_gpu_rasterization_; |
(...skipping 24 matching lines...) Expand all Loading... |
141 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); | 148 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); |
142 } | 149 } |
143 | 150 |
144 void DisplayListRecordingSource::Clear() { | 151 void DisplayListRecordingSource::Clear() { |
145 recorded_viewport_ = gfx::Rect(); | 152 recorded_viewport_ = gfx::Rect(); |
146 display_list_ = NULL; | 153 display_list_ = NULL; |
147 is_solid_color_ = false; | 154 is_solid_color_ = false; |
148 } | 155 } |
149 | 156 |
150 } // namespace cc | 157 } // namespace cc |
OLD | NEW |