OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_ | |
6 #define CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_ | |
7 | |
8 #include "base/lazy_instance.h" | |
9 #include "base/macros.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "cc/base/cc_export.h" | |
12 #include "cc/layers/content_layer_client.h" | |
13 #include "ui/gfx/geometry/rect.h" | |
14 | |
15 namespace cc { | |
16 | |
17 class DisplayItemList; | |
18 | |
19 class CC_EXPORT EmptyContentLayerClient : public ContentLayerClient { | |
vmpstr
2015/12/18 07:42:33
Can you add a class comment here to explain what t
David Trainor- moved to gerrit
2016/01/04 06:50:15
Done.
| |
20 public: | |
21 static ContentLayerClient* GetInstance(); | |
22 | |
23 // ContentLayerClient implementation. | |
24 gfx::Rect PaintableRegion() override; | |
25 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( | |
26 PaintingControlSetting painting_status) override; | |
27 bool FillsBoundsCompletely() const override; | |
28 size_t GetApproximateUnsharedMemoryUsage() const override; | |
29 | |
30 private: | |
31 friend struct base::DefaultLazyInstanceTraits<EmptyContentLayerClient>; | |
32 | |
33 EmptyContentLayerClient(); | |
34 ~EmptyContentLayerClient() override; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(EmptyContentLayerClient); | |
37 }; | |
38 | |
39 } // namespace cc | |
40 | |
41 #endif // CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_ | |
OLD | NEW |