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 | 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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 scoped_refptr<PicturePileImpl> PicturePileImpl::Create() { | 22 scoped_refptr<PicturePileImpl> PicturePileImpl::Create() { |
23 return make_scoped_refptr(new PicturePileImpl); | 23 return make_scoped_refptr(new PicturePileImpl); |
24 } | 24 } |
25 | 25 |
26 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromOther( | 26 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromOther( |
27 const PicturePileBase* other) { | 27 const PicturePileBase* other) { |
28 return make_scoped_refptr(new PicturePileImpl(other)); | 28 return make_scoped_refptr(new PicturePileImpl(other)); |
29 } | 29 } |
30 | 30 |
31 PicturePileImpl::PicturePileImpl() { | 31 PicturePileImpl::PicturePileImpl() |
| 32 : likely_to_be_used_for_transform_animation_(false) { |
32 } | 33 } |
33 | 34 |
34 PicturePileImpl::PicturePileImpl(const PicturePileBase* other) | 35 PicturePileImpl::PicturePileImpl(const PicturePileBase* other) |
35 : PicturePileBase(other) { | 36 : PicturePileBase(other), |
| 37 likely_to_be_used_for_transform_animation_(false) { |
36 } | 38 } |
37 | 39 |
38 PicturePileImpl::~PicturePileImpl() { | 40 PicturePileImpl::~PicturePileImpl() { |
39 } | 41 } |
40 | 42 |
41 void PicturePileImpl::RasterDirect( | 43 void PicturePileImpl::RasterDirect( |
42 SkCanvas* canvas, | 44 SkCanvas* canvas, |
43 const gfx::Rect& canvas_rect, | 45 const gfx::Rect& canvas_rect, |
44 float contents_scale, | 46 float contents_scale, |
45 RenderingStatsInstrumentation* rendering_stats_instrumentation) { | 47 RenderingStatsInstrumentation* rendering_stats_instrumentation) { |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 ++it) { | 418 ++it) { |
417 const Picture* picture = it->second.GetPicture(); | 419 const Picture* picture = it->second.GetPicture(); |
418 if (picture && (processed_pictures.count(picture) == 0)) { | 420 if (picture && (processed_pictures.count(picture) == 0)) { |
419 picture->EmitTraceSnapshot(); | 421 picture->EmitTraceSnapshot(); |
420 processed_pictures.insert(picture); | 422 processed_pictures.insert(picture); |
421 } | 423 } |
422 } | 424 } |
423 } | 425 } |
424 | 426 |
425 } // namespace cc | 427 } // namespace cc |
OLD | NEW |