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/playback/display_list_recording_source.h" | 5 #include "cc/playback/display_list_recording_source.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 break; | 153 break; |
154 case RECORD_WITH_PAINTING_DISABLED: | 154 case RECORD_WITH_PAINTING_DISABLED: |
155 painting_control = ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED; | 155 painting_control = ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED; |
156 break; | 156 break; |
157 case RECORD_WITH_CACHING_DISABLED: | 157 case RECORD_WITH_CACHING_DISABLED: |
158 painting_control = ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED; | 158 painting_control = ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED; |
159 break; | 159 break; |
160 case RECORD_WITH_CONSTRUCTION_DISABLED: | 160 case RECORD_WITH_CONSTRUCTION_DISABLED: |
161 painting_control = ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED; | 161 painting_control = ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED; |
162 break; | 162 break; |
| 163 case RECORD_WITH_SUBSEQUENCE_CACHING_DISABLED: |
| 164 painting_control = ContentLayerClient::SUBSEQUENCE_CACHING_DISABLED; |
| 165 break; |
163 case RECORD_WITH_SK_NULL_CANVAS: | 166 case RECORD_WITH_SK_NULL_CANVAS: |
164 case RECORDING_MODE_COUNT: | 167 case RECORDING_MODE_COUNT: |
165 NOTREACHED(); | 168 NOTREACHED(); |
166 } | 169 } |
167 | 170 |
168 // TODO(vmpstr): Add a slow_down_recording_scale_factor_for_debug_ to be able | 171 // TODO(vmpstr): Add a slow_down_recording_scale_factor_for_debug_ to be able |
169 // to slow down recording. | 172 // to slow down recording. |
170 display_list_ = painter->PaintContentsToDisplayList(painting_control); | 173 display_list_ = painter->PaintContentsToDisplayList(painting_control); |
171 painter_reported_memory_usage_ = painter->GetApproximateUnsharedMemoryUsage(); | 174 painter_reported_memory_usage_ = painter->GetApproximateUnsharedMemoryUsage(); |
172 | 175 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 } | 234 } |
232 | 235 |
233 void DisplayListRecordingSource::Clear() { | 236 void DisplayListRecordingSource::Clear() { |
234 recorded_viewport_ = gfx::Rect(); | 237 recorded_viewport_ = gfx::Rect(); |
235 display_list_ = nullptr; | 238 display_list_ = nullptr; |
236 painter_reported_memory_usage_ = 0; | 239 painter_reported_memory_usage_ = 0; |
237 is_solid_color_ = false; | 240 is_solid_color_ = false; |
238 } | 241 } |
239 | 242 |
240 } // namespace cc | 243 } // namespace cc |
OLD | NEW |