OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_RESOURCES_CONTENT_LAYER_PAINTER_H_ |
| 6 #define CC_RESOURCES_CONTENT_LAYER_PAINTER_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/base/cc_export.h" |
| 10 |
| 11 class SkCanvas; |
| 12 |
| 13 namespace gfx { |
| 14 class Rect; |
| 15 class RectF; |
| 16 } |
| 17 |
| 18 namespace cc { |
| 19 |
| 20 class ContentLayerClient; |
| 21 |
| 22 class CC_EXPORT ContentLayerPainter { |
| 23 public: |
| 24 static scoped_ptr<ContentLayerPainter> Create(ContentLayerClient* client); |
| 25 |
| 26 virtual void Paint(SkCanvas* canvas, |
| 27 const gfx::Rect& content_rect, |
| 28 bool can_paint_lcd_text, |
| 29 gfx::RectF* opaque); |
| 30 |
| 31 protected: |
| 32 explicit ContentLayerPainter(ContentLayerClient* client); |
| 33 |
| 34 private: |
| 35 ContentLayerClient* client_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); |
| 38 }; |
| 39 |
| 40 } // namespace cc |
| 41 |
| 42 #endif // CC_RESOURCES_CONTENT_LAYER_PAINTER_H_ |
OLD | NEW |