OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |