| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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_BLIMP_DESERIALIZED_CONTENT_LAYER_CLIENT_H_ |
| 6 #define CC_BLIMP_DESERIALIZED_CONTENT_LAYER_CLIENT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "cc/layers/content_layer_client.h" |
| 10 |
| 11 namespace cc { |
| 12 |
| 13 // The ContentLayerClient used by the PictureLayers created for the remote |
| 14 // client. This holds the deserialized DisplayItemList received from the |
| 15 // corresponding PictureLayer's client on the engine. |
| 16 class DeserializedContentLayerClient : public ContentLayerClient { |
| 17 public: |
| 18 DeserializedContentLayerClient(); |
| 19 ~DeserializedContentLayerClient() override; |
| 20 |
| 21 // Updates from the display list update received from the engine. |
| 22 void UpdateDisplayListAndRecordedViewport( |
| 23 scoped_refptr<DisplayItemList> display_list, |
| 24 gfx::Rect recorded_viewport); |
| 25 |
| 26 // ContentLayerClient implementation. |
| 27 gfx::Rect PaintableRegion() override; |
| 28 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( |
| 29 PaintingControlSetting painting_status) override; |
| 30 bool FillsBoundsCompletely() const override; |
| 31 size_t GetApproximateUnsharedMemoryUsage() const override; |
| 32 |
| 33 private: |
| 34 scoped_refptr<DisplayItemList> display_list_; |
| 35 gfx::Rect recorded_viewport_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(DeserializedContentLayerClient); |
| 38 }; |
| 39 |
| 40 } // namespace cc |
| 41 |
| 42 #endif // CC_BLIMP_DESERIALIZED_CONTENT_LAYER_CLIENT_H_ |
| OLD | NEW |