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

Side by Side Diff: cc/layers/empty_content_layer_client.h

Issue 1527863002: Serialize PictureLayer properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years 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 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_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/empty_content_layer_client.cc » ('j') | cc/layers/picture_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698