Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Unified Diff: cc/resources/content_layer_painter.h

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better unittest Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698