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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/empty_content_layer_client.h
diff --git a/cc/layers/empty_content_layer_client.h b/cc/layers/empty_content_layer_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..5cdc9067172a50bf780143c13114e13a144c132d
--- /dev/null
+++ b/cc/layers/empty_content_layer_client.h
@@ -0,0 +1,41 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_
+#define CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_
+
+#include "base/lazy_instance.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "cc/base/cc_export.h"
+#include "cc/layers/content_layer_client.h"
+#include "ui/gfx/geometry/rect.h"
+
+namespace cc {
+
+class DisplayItemList;
+
+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.
+ public:
+ static ContentLayerClient* GetInstance();
+
+ // ContentLayerClient implementation.
+ gfx::Rect PaintableRegion() override;
+ scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
+ PaintingControlSetting painting_status) override;
+ bool FillsBoundsCompletely() const override;
+ size_t GetApproximateUnsharedMemoryUsage() const override;
+
+ private:
+ friend struct base::DefaultLazyInstanceTraits<EmptyContentLayerClient>;
+
+ EmptyContentLayerClient();
+ ~EmptyContentLayerClient() override;
+
+ DISALLOW_COPY_AND_ASSIGN(EmptyContentLayerClient);
+};
+
+} // namespace cc
+
+#endif // CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_
« 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