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