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

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

Issue 85813003: --enable-gpu-rasterization flag for turning on hybrid ganesh mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 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 "cc/resources/picture_pile.h" 5 #include "cc/resources/picture_pile.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
11 #include "cc/base/region.h" 11 #include "cc/base/region.h"
12 #include "cc/base/switches.h"
12 #include "cc/debug/rendering_stats_instrumentation.h" 13 #include "cc/debug/rendering_stats_instrumentation.h"
13 #include "cc/resources/picture_pile_impl.h" 14 #include "cc/resources/picture_pile_impl.h"
14 15
15 namespace { 16 namespace {
16 // Layout pixel buffer around the visible layer rect to record. Any base 17 // Layout pixel buffer around the visible layer rect to record. Any base
17 // picture that intersects the visible layer rect expanded by this distance 18 // picture that intersects the visible layer rect expanded by this distance
18 // will be recorded. 19 // will be recorded.
19 const int kPixelDistanceToRecord = 8000; 20 const int kPixelDistanceToRecord = 8000;
20 21
21 // TODO(humper): The density threshold here is somewhat arbitrary; need a 22 // TODO(humper): The density threshold here is somewhat arbitrary; need a
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 info.picture = picture; 239 info.picture = picture;
239 } 240 }
240 } 241 }
241 } 242 }
242 243
243 UpdateRecordedRegion(); 244 UpdateRecordedRegion();
244 return true; 245 return true;
245 } 246 }
246 247
247 } // namespace cc 248 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698