Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: cc/blimp/deserialized_content_layer_client.h

Issue 2646623002: cc: Remove all blimp code from cc. (Closed)
Patch Set: test build Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « cc/blimp/compositor_state_deserializer_unittest.cc ('k') | cc/blimp/deserialized_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698