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

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

Issue 664803003: Update from chromium a8e7c94b1b79a0948d05a1fcfff53391d22ce37a (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/resources/picture_pile_impl.h ('k') | cc/resources/prioritized_resource_unittest.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 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
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
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
OLDNEW
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/resources/prioritized_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698