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

Side by Side 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: updated unittests 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698