| 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 12 matching lines...) Expand all Loading... |
| 23 class WebContentLayerImpl : public blink::WebContentLayer, | 23 class WebContentLayerImpl : public blink::WebContentLayer, |
| 24 public cc::ContentLayerClient { | 24 public cc::ContentLayerClient { |
| 25 public: | 25 public: |
| 26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebContentLayerImpl( | 26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebContentLayerImpl( |
| 27 blink::WebContentLayerClient*); | 27 blink::WebContentLayerClient*); |
| 28 | 28 |
| 29 // WebContentLayer implementation. | 29 // WebContentLayer implementation. |
| 30 virtual blink::WebLayer* layer(); | 30 virtual blink::WebLayer* layer(); |
| 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 | 34 |
| 34 protected: | 35 protected: |
| 35 virtual ~WebContentLayerImpl(); | 36 virtual ~WebContentLayerImpl(); |
| 36 | 37 |
| 37 // ContentLayerClient implementation. | 38 // ContentLayerClient implementation. |
| 38 virtual void PaintContents(SkCanvas* canvas, | 39 virtual void PaintContents(SkCanvas* canvas, |
| 39 const gfx::Rect& clip, | 40 const gfx::Rect& clip, |
| 40 gfx::RectF* opaque) OVERRIDE; | 41 gfx::RectF* opaque) OVERRIDE; |
| 41 virtual void DidChangeLayerCanUseLCDText() OVERRIDE; | 42 virtual void DidChangeLayerCanUseLCDText() OVERRIDE; |
| 42 | 43 |
| 43 scoped_ptr<WebLayerImpl> layer_; | 44 scoped_ptr<WebLayerImpl> layer_; |
| 44 blink::WebContentLayerClient* client_; | 45 blink::WebContentLayerClient* client_; |
| 45 bool draws_content_; | 46 bool draws_content_; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 bool can_use_lcd_text_; | 49 bool can_use_lcd_text_; |
| 49 bool ignore_lcd_text_change_; | 50 bool ignore_lcd_text_change_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); | 52 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 } // namespace webkit | 55 } // namespace webkit |
| 55 | 56 |
| 56 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ | 57 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ |
| OLD | NEW |