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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 gfx::Size DisplayListRecordingSource::GetSize() const { | 100 gfx::Size DisplayListRecordingSource::GetSize() const { |
101 return size_; | 101 return size_; |
102 } | 102 } |
103 | 103 |
104 void DisplayListRecordingSource::SetEmptyBounds() { | 104 void DisplayListRecordingSource::SetEmptyBounds() { |
105 size_ = gfx::Size(); | 105 size_ = gfx::Size(); |
106 Clear(); | 106 Clear(); |
107 } | 107 } |
108 | 108 |
109 void DisplayListRecordingSource::SetMinContentsScale(float min_contents_scale) { | |
110 } | |
111 | |
112 void DisplayListRecordingSource::SetTileGridSize( | |
113 const gfx::Size& tile_grid_size) { | |
114 } | |
115 | |
116 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { | 109 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { |
117 slow_down_raster_scale_factor_for_debug_ = factor; | 110 slow_down_raster_scale_factor_for_debug_ = factor; |
118 } | 111 } |
119 | 112 |
120 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { | 113 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { |
121 is_suitable_for_gpu_rasterization_ = false; | 114 is_suitable_for_gpu_rasterization_ = false; |
122 } | 115 } |
123 | 116 |
124 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { | 117 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { |
125 return is_suitable_for_gpu_rasterization_; | 118 return is_suitable_for_gpu_rasterization_; |
(...skipping 23 matching lines...) Expand all Loading... |
149 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); | 142 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); |
150 } | 143 } |
151 | 144 |
152 void DisplayListRecordingSource::Clear() { | 145 void DisplayListRecordingSource::Clear() { |
153 recorded_viewport_ = gfx::Rect(); | 146 recorded_viewport_ = gfx::Rect(); |
154 display_list_ = NULL; | 147 display_list_ = NULL; |
155 is_solid_color_ = false; | 148 is_solid_color_ = false; |
156 } | 149 } |
157 | 150 |
158 } // namespace cc | 151 } // namespace cc |
OLD | NEW |