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

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

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/playback/picture_pile.h ('k') | cc/playback/picture_pile_impl.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 "cc/resources/picture_pile.h" 5 #include "cc/playback/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/resources/picture_pile_impl.h" 12 #include "cc/playback/picture_pile_impl.h"
13 #include "skia/ext/analysis_canvas.h" 13 #include "skia/ext/analysis_canvas.h"
14 14
15 namespace { 15 namespace {
16 // Layout pixel buffer around the visible layer rect to record. Any base 16 // Layout pixel buffer around the visible layer rect to record. Any base
17 // picture that intersects the visible layer rect expanded by this distance 17 // picture that intersects the visible layer rect expanded by this distance
18 // will be recorded. 18 // will be recorded.
19 const int kPixelDistanceToRecord = 8000; 19 const int kPixelDistanceToRecord = 8000;
20 // We don't perform solid color analysis on images that have more than 10 skia 20 // We don't perform solid color analysis on images that have more than 10 skia
21 // operations. 21 // operations.
22 const int kOpCountThatIsOkToAnalyze = 10; 22 const int kOpCountThatIsOkToAnalyze = 10;
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 675
676 void PicturePile::SetBufferPixels(int new_buffer_pixels) { 676 void PicturePile::SetBufferPixels(int new_buffer_pixels) {
677 if (new_buffer_pixels == buffer_pixels()) 677 if (new_buffer_pixels == buffer_pixels())
678 return; 678 return;
679 679
680 Clear(); 680 Clear();
681 tiling_.SetBorderTexels(new_buffer_pixels); 681 tiling_.SetBorderTexels(new_buffer_pixels);
682 } 682 }
683 683
684 } // namespace cc 684 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/picture_pile.h ('k') | cc/playback/picture_pile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698