| 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 #ifndef ContentLayerChromiumClient_h | 5 #ifndef ContentLayerChromiumClient_h |
| 6 #define ContentLayerChromiumClient_h | 6 #define ContentLayerChromiumClient_h |
| 7 | 7 |
| 8 class SkCanvas; | 8 class SkCanvas; |
| 9 | 9 |
| 10 namespace gfx { |
| 11 class Rect; |
| 12 class RectF; |
| 13 } |
| 14 |
| 10 namespace cc { | 15 namespace cc { |
| 11 class FloatRect; | |
| 12 class IntRect; | |
| 13 | 16 |
| 14 class ContentLayerClient { | 17 class ContentLayerClient { |
| 15 public: | 18 public: |
| 16 virtual void paintContents(SkCanvas*, const IntRect& clip, FloatRect& opaque
) = 0; | 19 virtual void paintContents(SkCanvas*, const gfx::Rect& clip, gfx::RectF& opa
que) = 0; |
| 17 | 20 |
| 18 protected: | 21 protected: |
| 19 virtual ~ContentLayerClient() { } | 22 virtual ~ContentLayerClient() { } |
| 20 }; | 23 }; |
| 21 | 24 |
| 22 } | 25 } |
| 23 | 26 |
| 24 #endif // ContentLayerChromiumClient_h | 27 #endif // ContentLayerChromiumClient_h |
| OLD | NEW |