OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ |
6 #define CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ | 6 #define CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class WebContentLayerImpl : public blink::WebContentLayer, | 24 class WebContentLayerImpl : public blink::WebContentLayer, |
25 public cc::ContentLayerClient { | 25 public cc::ContentLayerClient { |
26 public: | 26 public: |
27 CC_BLINK_EXPORT explicit WebContentLayerImpl(blink::WebContentLayerClient*); | 27 CC_BLINK_EXPORT explicit WebContentLayerImpl(blink::WebContentLayerClient*); |
28 | 28 |
29 ~WebContentLayerImpl() override; | 29 ~WebContentLayerImpl() override; |
30 | 30 |
31 // WebContentLayer implementation. | 31 // WebContentLayer implementation. |
32 blink::WebLayer* layer() override; | 32 blink::WebLayer* layer() override; |
| 33 void setAllowTransformedRasterization(bool) override; |
33 | 34 |
34 protected: | 35 protected: |
35 // ContentLayerClient implementation. | 36 // ContentLayerClient implementation. |
36 gfx::Rect PaintableRegion() override; | 37 gfx::Rect PaintableRegion() override; |
37 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( | 38 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( |
38 PaintingControlSetting painting_control) override; | 39 PaintingControlSetting painting_control) override; |
39 bool FillsBoundsCompletely() const override; | 40 bool FillsBoundsCompletely() const override; |
40 size_t GetApproximateUnsharedMemoryUsage() const override; | 41 size_t GetApproximateUnsharedMemoryUsage() const override; |
41 | 42 |
42 std::unique_ptr<WebLayerImpl> layer_; | 43 std::unique_ptr<WebLayerImpl> layer_; |
43 blink::WebContentLayerClient* client_; | 44 blink::WebContentLayerClient* client_; |
44 | 45 |
45 private: | 46 private: |
46 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); | 47 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace cc_blink | 50 } // namespace cc_blink |
50 | 51 |
51 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ | 52 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ |
OLD | NEW |