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 "base/compiler_specific.h" |
5 #include "cc/content_layer_client.h" | 6 #include "cc/content_layer_client.h" |
6 | 7 |
7 namespace WebKitTests { | 8 namespace WebKitTests { |
8 | 9 |
9 class FakeContentLayerClient : public cc::ContentLayerClient { | 10 class FakeContentLayerClient : public cc::ContentLayerClient { |
10 public: | 11 public: |
11 FakeContentLayerClient(); | 12 FakeContentLayerClient(); |
12 | 13 |
13 virtual void paintContents(SkCanvas*, const gfx::Rect& rect, gfx::RectF& opa
queRect) OVERRIDE; | 14 virtual void paintContents(SkCanvas*, const gfx::Rect& rect, gfx::RectF& opa
queRect) OVERRIDE; |
14 | 15 |
15 void setPaintAllOpaque(bool opaque) { m_paintAllOpaque = opaque; } | 16 void setPaintAllOpaque(bool opaque) { m_paintAllOpaque = opaque; } |
16 | 17 |
17 private: | 18 private: |
18 bool m_paintAllOpaque; | 19 bool m_paintAllOpaque; |
19 }; | 20 }; |
20 | 21 |
21 } // namespace WebKitTests | 22 } // namespace WebKitTests |
OLD | NEW |