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

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

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/resources/resource_provider.cc » ('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 #include <set> 7 #include <set>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "cc/base/region.h" 10 #include "cc/base/region.h"
(...skipping 10 matching lines...) Expand all
21 #ifdef NDEBUG 21 #ifdef NDEBUG
22 const bool kDefaultClearCanvasSetting = false; 22 const bool kDefaultClearCanvasSetting = false;
23 #else 23 #else
24 const bool kDefaultClearCanvasSetting = true; 24 const bool kDefaultClearCanvasSetting = true;
25 #endif 25 #endif
26 26
27 } // namespace 27 } // namespace
28 28
29 namespace cc { 29 namespace cc {
30 30
31 scoped_refptr<PicturePileImpl> PicturePileImpl::Create() {
32 return make_scoped_refptr(new PicturePileImpl);
33 }
34
35 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromPicturePile( 31 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromPicturePile(
36 const PicturePile* other) { 32 const PicturePile* other) {
37 return make_scoped_refptr(new PicturePileImpl(other)); 33 return make_scoped_refptr(new PicturePileImpl(other));
38 } 34 }
39 35
40 PicturePileImpl::PicturePileImpl() 36 PicturePileImpl::PicturePileImpl()
41 : background_color_(SK_ColorTRANSPARENT), 37 : background_color_(SK_ColorTRANSPARENT),
42 requires_clear_(true), 38 requires_clear_(true),
43 can_use_lcd_text_(false), 39 can_use_lcd_text_(false),
44 is_solid_color_(false), 40 is_solid_color_(false),
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 ++it) { 458 ++it) {
463 const Picture* picture = it->second.GetPicture(); 459 const Picture* picture = it->second.GetPicture();
464 if (picture && (processed_pictures.count(picture) == 0)) { 460 if (picture && (processed_pictures.count(picture) == 0)) {
465 picture->EmitTraceSnapshot(); 461 picture->EmitTraceSnapshot();
466 processed_pictures.insert(picture); 462 processed_pictures.insert(picture);
467 } 463 }
468 } 464 }
469 } 465 }
470 466
471 } // namespace cc 467 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698