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

Side by Side Diff: cc/test/fake_content_layer_client.cc

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 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/test/animation_timelines_test_common.cc ('k') | cc/test/fake_picture_layer.h » ('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 "cc/test/fake_content_layer_client.h" 5 #include "cc/test/fake_content_layer_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/paint/clip_display_item.h"
10 #include "cc/paint/drawing_display_item.h"
9 #include "cc/paint/paint_canvas.h" 11 #include "cc/paint/paint_canvas.h"
10 #include "cc/paint/paint_recorder.h" 12 #include "cc/paint/paint_recorder.h"
11 #include "cc/playback/clip_display_item.h" 13 #include "cc/paint/transform_display_item.h"
12 #include "cc/playback/drawing_display_item.h"
13 #include "cc/playback/transform_display_item.h"
14 #include "ui/gfx/geometry/rect_conversions.h" 14 #include "ui/gfx/geometry/rect_conversions.h"
15 #include "ui/gfx/skia_util.h" 15 #include "ui/gfx/skia_util.h"
16 16
17 namespace cc { 17 namespace cc {
18 18
19 FakeContentLayerClient::ImageData::ImageData(sk_sp<const SkImage> img, 19 FakeContentLayerClient::ImageData::ImageData(sk_sp<const SkImage> img,
20 const gfx::Point& point, 20 const gfx::Point& point,
21 const PaintFlags& flags) 21 const PaintFlags& flags)
22 : image(std::move(img)), point(point), flags(flags) {} 22 : image(std::move(img)), point(point), flags(flags) {}
23 23
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return display_list; 99 return display_list;
100 } 100 }
101 101
102 bool FakeContentLayerClient::FillsBoundsCompletely() const { return false; } 102 bool FakeContentLayerClient::FillsBoundsCompletely() const { return false; }
103 103
104 size_t FakeContentLayerClient::GetApproximateUnsharedMemoryUsage() const { 104 size_t FakeContentLayerClient::GetApproximateUnsharedMemoryUsage() const {
105 return reported_memory_usage_; 105 return reported_memory_usage_;
106 } 106 }
107 107
108 } // namespace cc 108 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/animation_timelines_test_common.cc ('k') | cc/test/fake_picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698