| 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 | |
| 114 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { | 107 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { |
| 115 slow_down_raster_scale_factor_for_debug_ = factor; | 108 slow_down_raster_scale_factor_for_debug_ = factor; |
| 116 } | 109 } |
| 117 | 110 |
| 118 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { | 111 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { |
| 119 is_suitable_for_gpu_rasterization_ = false; | 112 is_suitable_for_gpu_rasterization_ = false; |
| 120 } | 113 } |
| 121 | 114 |
| 122 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { | 115 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { |
| 123 return is_suitable_for_gpu_rasterization_; | 116 return is_suitable_for_gpu_rasterization_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 148 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); | 141 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); |
| 149 } | 142 } |
| 150 | 143 |
| 151 void DisplayListRecordingSource::Clear() { | 144 void DisplayListRecordingSource::Clear() { |
| 152 recorded_viewport_ = gfx::Rect(); | 145 recorded_viewport_ = gfx::Rect(); |
| 153 display_list_ = NULL; | 146 display_list_ = NULL; |
| 154 is_solid_color_ = false; | 147 is_solid_color_ = false; |
| 155 } | 148 } |
| 156 | 149 |
| 157 } // namespace cc | 150 } // namespace cc |
| OLD | NEW |