Index: cc/resources/content_layer_painter.h |
diff --git a/cc/resources/content_layer_painter.h b/cc/resources/content_layer_painter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6f5f9845ed9cd90a835d33edb09d0890042659ce |
--- /dev/null |
+++ b/cc/resources/content_layer_painter.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_RESOURCES_CONTENT_LAYER_PAINTER_H_ |
+#define CC_RESOURCES_CONTENT_LAYER_PAINTER_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "cc/base/cc_export.h" |
+ |
+class SkCanvas; |
+ |
+namespace gfx { |
+class Rect; |
+class RectF; |
+} |
+ |
+namespace cc { |
+ |
+class ContentLayerClient; |
+ |
+class CC_EXPORT ContentLayerPainter { |
+ public: |
+ static scoped_ptr<ContentLayerPainter> Create(ContentLayerClient* client); |
+ |
+ virtual void Paint(SkCanvas* canvas, |
+ const gfx::Rect& content_rect, |
+ bool can_paint_lcd_text, |
+ gfx::RectF* opaque); |
+ |
+ protected: |
+ explicit ContentLayerPainter(ContentLayerClient* client); |
+ |
+ private: |
+ ContentLayerClient* client_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_RESOURCES_CONTENT_LAYER_PAINTER_H_ |