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 "third_party/skia/include/core/SkCanvas.h" | 7 #include "third_party/skia/include/core/SkCanvas.h" |
8 #include "ui/gfx/skia_util.h" | 8 #include "ui/gfx/skia_util.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
11 | 11 |
12 FakeContentLayerClient::FakeContentLayerClient() | 12 FakeContentLayerClient::FakeContentLayerClient() |
13 : fill_with_nonsolid_color_(false), last_canvas_(NULL) { | 13 : fill_with_nonsolid_color_(false), last_canvas_(nullptr) { |
14 } | 14 } |
15 | 15 |
16 FakeContentLayerClient::~FakeContentLayerClient() { | 16 FakeContentLayerClient::~FakeContentLayerClient() { |
17 } | 17 } |
18 | 18 |
19 void FakeContentLayerClient::PaintContents( | 19 void FakeContentLayerClient::PaintContents( |
20 SkCanvas* canvas, | 20 SkCanvas* canvas, |
21 const gfx::Rect& paint_rect, | 21 const gfx::Rect& paint_rect, |
22 ContentLayerClient::GraphicsContextStatus gc_status) { | 22 ContentLayerClient::GraphicsContextStatus gc_status) { |
23 last_canvas_ = canvas; | 23 last_canvas_ = canvas; |
(...skipping 26 matching lines...) Expand all Loading... |
50 draw_rect.y(), | 50 draw_rect.y(), |
51 draw_rect.right(), | 51 draw_rect.right(), |
52 draw_rect.bottom(), | 52 draw_rect.bottom(), |
53 paint); | 53 paint); |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 bool FakeContentLayerClient::FillsBoundsCompletely() const { return false; } | 57 bool FakeContentLayerClient::FillsBoundsCompletely() const { return false; } |
58 | 58 |
59 } // namespace cc | 59 } // namespace cc |
OLD | NEW |