OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ |
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/layers/content_layer_client.h" | 9 #include "cc/layers/content_layer_client.h" |
10 #include "third_party/WebKit/public/platform/WebContentLayer.h" | 10 #include "third_party/WebKit/public/platform/WebContentLayer.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual void setDoubleSided(bool double_sided); | 31 virtual void setDoubleSided(bool double_sided); |
32 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard); | 32 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard); |
33 virtual void setHasGpuRasterizationHint(bool has_hint); | 33 virtual void setHasGpuRasterizationHint(bool has_hint); |
34 | 34 |
35 protected: | 35 protected: |
36 virtual ~WebContentLayerImpl(); | 36 virtual ~WebContentLayerImpl(); |
37 | 37 |
38 // ContentLayerClient implementation. | 38 // ContentLayerClient implementation. |
39 virtual void PaintContents(SkCanvas* canvas, | 39 virtual void PaintContents(SkCanvas* canvas, |
40 const gfx::Rect& clip, | 40 const gfx::Rect& clip, |
| 41 bool can_paint_lcd_text, |
41 gfx::RectF* opaque, | 42 gfx::RectF* opaque, |
42 ContentLayerClient::GraphicsContextStatus | 43 ContentLayerClient::GraphicsContextStatus |
43 graphics_context_status) OVERRIDE; | 44 graphics_context_status) OVERRIDE; |
44 virtual void DidChangeLayerCanUseLCDText() OVERRIDE; | 45 virtual bool PaintsLCDText() const OVERRIDE; |
45 virtual bool FillsBoundsCompletely() const OVERRIDE; | 46 virtual bool FillsBoundsCompletely() const OVERRIDE; |
46 | 47 |
47 scoped_ptr<WebLayerImpl> layer_; | 48 scoped_ptr<WebLayerImpl> layer_; |
48 blink::WebContentLayerClient* client_; | 49 blink::WebContentLayerClient* client_; |
49 bool draws_content_; | 50 bool draws_content_; |
50 | 51 |
51 private: | 52 private: |
52 bool can_use_lcd_text_; | |
53 bool ignore_lcd_text_change_; | |
54 | |
55 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); | 53 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); |
56 }; | 54 }; |
57 | 55 |
58 } // namespace webkit | 56 } // namespace webkit |
59 | 57 |
60 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ | 58 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ |
OLD | NEW |