Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: cc/playback/display_list_recording_source.cc

Issue 1552693002: Add paint testing mode subsequence_caching_disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RemoveSyncPaint
Patch Set: Rebase on origin/master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/playback/display_list_recording_source.h ('k') | third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698