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

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

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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_base.cc ('k') | cc/resources/picture_pile_impl_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"
11 #include "cc/resources/picture_pile_impl.h" 11 #include "cc/resources/picture_pile_impl.h"
12 #include "skia/ext/analysis_canvas.h" 12 #include "skia/ext/analysis_canvas.h"
13 #include "third_party/skia/include/core/SkCanvas.h" 13 #include "third_party/skia/include/core/SkCanvas.h"
14 #include "third_party/skia/include/core/SkPictureRecorder.h" 14 #include "third_party/skia/include/core/SkPictureRecorder.h"
15 #include "third_party/skia/include/core/SkSize.h" 15 #include "ui/gfx/geometry/rect_conversions.h"
16 #include "ui/gfx/rect_conversions.h"
17 #include "ui/gfx/size_conversions.h"
18 #include "ui/gfx/skia_util.h"
19 16
20 namespace cc { 17 namespace cc {
21 18
22 scoped_refptr<PicturePileImpl> PicturePileImpl::Create() { 19 scoped_refptr<PicturePileImpl> PicturePileImpl::Create() {
23 return make_scoped_refptr(new PicturePileImpl); 20 return make_scoped_refptr(new PicturePileImpl);
24 } 21 }
25 22
26 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromOther( 23 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromOther(
27 const PicturePileBase* other) { 24 const PicturePileBase* other) {
28 return make_scoped_refptr(new PicturePileImpl(other)); 25 return make_scoped_refptr(new PicturePileImpl(other));
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 ++it) { 415 ++it) {
419 const Picture* picture = it->second.GetPicture(); 416 const Picture* picture = it->second.GetPicture();
420 if (picture && (processed_pictures.count(picture) == 0)) { 417 if (picture && (processed_pictures.count(picture) == 0)) {
421 picture->EmitTraceSnapshot(); 418 picture->EmitTraceSnapshot();
422 processed_pictures.insert(picture); 419 processed_pictures.insert(picture);
423 } 420 }
424 } 421 }
425 } 422 }
426 423
427 } // namespace cc 424 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_pile_base.cc ('k') | cc/resources/picture_pile_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698