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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 break; | 145 break; |
146 case RECORD_WITH_PAINTING_DISABLED: | 146 case RECORD_WITH_PAINTING_DISABLED: |
147 painting_control = ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED; | 147 painting_control = ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED; |
148 break; | 148 break; |
149 case RECORD_WITH_CACHING_DISABLED: | 149 case RECORD_WITH_CACHING_DISABLED: |
150 painting_control = ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED; | 150 painting_control = ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED; |
151 break; | 151 break; |
152 case RECORD_WITH_CONSTRUCTION_DISABLED: | 152 case RECORD_WITH_CONSTRUCTION_DISABLED: |
153 painting_control = ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED; | 153 painting_control = ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED; |
154 break; | 154 break; |
| 155 case RECORD_WITH_SUBSEQUENCE_CACHING_DISABLED: |
| 156 painting_control = ContentLayerClient::SUBSEQUENCE_CACHING_DISABLED; |
| 157 break; |
155 case RECORD_WITH_SK_NULL_CANVAS: | 158 case RECORD_WITH_SK_NULL_CANVAS: |
156 case RECORDING_MODE_COUNT: | 159 case RECORDING_MODE_COUNT: |
157 NOTREACHED(); | 160 NOTREACHED(); |
158 } | 161 } |
159 | 162 |
160 // TODO(vmpstr): Add a slow_down_recording_scale_factor_for_debug_ to be able | 163 // TODO(vmpstr): Add a slow_down_recording_scale_factor_for_debug_ to be able |
161 // to slow down recording. | 164 // to slow down recording. |
162 display_list_ = painter->PaintContentsToDisplayList(painting_control); | 165 display_list_ = painter->PaintContentsToDisplayList(painting_control); |
163 painter_reported_memory_usage_ = painter->GetApproximateUnsharedMemoryUsage(); | 166 painter_reported_memory_usage_ = painter->GetApproximateUnsharedMemoryUsage(); |
164 | 167 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 226 } |
224 | 227 |
225 void DisplayListRecordingSource::Clear() { | 228 void DisplayListRecordingSource::Clear() { |
226 recorded_viewport_ = gfx::Rect(); | 229 recorded_viewport_ = gfx::Rect(); |
227 display_list_ = nullptr; | 230 display_list_ = nullptr; |
228 painter_reported_memory_usage_ = 0; | 231 painter_reported_memory_usage_ = 0; |
229 is_solid_color_ = false; | 232 is_solid_color_ = false; |
230 } | 233 } |
231 | 234 |
232 } // namespace cc | 235 } // namespace cc |
OLD | NEW |