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

Side by Side Diff: cc/resources/picture_pile_impl.cc

Issue 15995033: cc: Low quality support for low res tiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 7 years, 6 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
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/resources/tile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 <algorithm> 5 #include <algorithm>
6 #include <limits> 6 #include <limits>
7 7
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "cc/base/region.h" 9 #include "cc/base/region.h"
10 #include "cc/debug/debug_colors.h" 10 #include "cc/debug/debug_colors.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 base::TimeDelta::FromInternalValue(0); 201 base::TimeDelta::FromInternalValue(0);
202 base::TimeDelta best_duration = 202 base::TimeDelta best_duration =
203 base::TimeDelta::FromInternalValue(std::numeric_limits<int64>::max()); 203 base::TimeDelta::FromInternalValue(std::numeric_limits<int64>::max());
204 int repeat_count = std::max(1, slow_down_raster_scale_factor_for_debug_); 204 int repeat_count = std::max(1, slow_down_raster_scale_factor_for_debug_);
205 205
206 for (int j = 0; j < repeat_count; ++j) { 206 for (int j = 0; j < repeat_count; ++j) {
207 base::TimeTicks start_time; 207 base::TimeTicks start_time;
208 if (raster_stats) 208 if (raster_stats)
209 start_time = base::TimeTicks::HighResNow(); 209 start_time = base::TimeTicks::HighResNow();
210 210
211 (*i)->Raster( 211 (*i)->Raster(canvas, callback, content_clip, contents_scale);
212 canvas, callback, content_clip, contents_scale, enable_lcd_text_);
213 212
214 if (raster_stats) { 213 if (raster_stats) {
215 base::TimeDelta duration = base::TimeTicks::HighResNow() - start_time; 214 base::TimeDelta duration = base::TimeTicks::HighResNow() - start_time;
216 total_duration += duration; 215 total_duration += duration;
217 best_duration = std::min(best_duration, duration); 216 best_duration = std::min(best_duration, duration);
218 } 217 }
219 } 218 }
220 219
221 if (raster_stats) { 220 if (raster_stats) {
222 gfx::Rect raster_rect = canvas_rect; 221 gfx::Rect raster_rect = canvas_rect;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 PictureList& picture_list = (*pli).second; 383 PictureList& picture_list = (*pli).second;
385 for (PictureList::iterator picture = picture_list.begin(); 384 for (PictureList::iterator picture = picture_list.begin();
386 picture != picture_list.end(); 385 picture != picture_list.end();
387 picture++) { 386 picture++) {
388 (*picture)->EmitTraceSnapshot(); 387 (*picture)->EmitTraceSnapshot();
389 } 388 }
390 } 389 }
391 } 390 }
392 391
393 } // namespace cc 392 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/resources/tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698