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

Unified Diff: public/platform/WebDisplayList.h

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebDisplayList.h
diff --git a/public/platform/WebDisplayList.h b/public/platform/WebDisplayList.h
new file mode 100644
index 0000000000000000000000000000000000000000..07a8a1a59d5d34beb182fd646b66fa29080f5bcb
--- /dev/null
+++ b/public/platform/WebDisplayList.h
@@ -0,0 +1,30 @@
+// Copyright 2014 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 WebDisplayList_h
+#define WebDisplayList_h
+
+#include "WebVector.h"
+#include "skia/ext/pixel_ref_utils.h"
+
+namespace blink {
+
+// TODO(chrishtr): this is just a placeholder for demonstration purposes, we should use the real class.
+class WebDisplayItem {
+public:
+ virtual ~WebDisplayItem() { }
+};
+
+// Represents the display list contents of a content layer.
+class WebDisplayList {
+public:
+ virtual ~WebDisplayList() { }
+ virtual unsigned size() const = 0;
+ virtual const WebDisplayItem& displayItem(unsigned index) const = 0;
+// virtual const skia::DiscardablePixelRefList& pixelRefs() const = 0;
+};
+
+} // namespace blink
+
+#endif // WebDisplayList_h
« Source/platform/graphics/paint/DisplayList.h ('K') | « public/platform/WebContentLayerClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698