| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/blink/cc_blink_export.h" | 9 #include "cc/blink/cc_blink_export.h" |
| 10 #include "cc/blink/web_layer_impl.h" | 10 #include "cc/blink/web_layer_impl.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // WebContentLayer implementation. | 30 // WebContentLayer implementation. |
| 31 blink::WebLayer* layer() override; | 31 blink::WebLayer* layer() override; |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 ~WebContentLayerImpl() override; | 34 ~WebContentLayerImpl() override; |
| 35 | 35 |
| 36 // ContentLayerClient implementation. | 36 // ContentLayerClient implementation. |
| 37 gfx::Rect PaintableRegion() override; | 37 gfx::Rect PaintableRegion() override; |
| 38 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( | 38 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( |
| 39 const gfx::Rect& clip, | |
| 40 PaintingControlSetting painting_control) override; | 39 PaintingControlSetting painting_control) override; |
| 41 bool FillsBoundsCompletely() const override; | 40 bool FillsBoundsCompletely() const override; |
| 42 size_t GetApproximateUnsharedMemoryUsage() const override; | 41 size_t GetApproximateUnsharedMemoryUsage() const override; |
| 43 | 42 |
| 44 scoped_ptr<WebLayerImpl> layer_; | 43 scoped_ptr<WebLayerImpl> layer_; |
| 45 blink::WebContentLayerClient* client_; | 44 blink::WebContentLayerClient* client_; |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); | 47 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 } // namespace cc_blink | 50 } // namespace cc_blink |
| 52 | 51 |
| 53 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ | 52 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ |
| OLD | NEW |