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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h

Issue 1379883003: Create PaintChunk and begin writing code to build paint chunks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h b/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h
new file mode 100644
index 0000000000000000000000000000000000000000..69a6651de7ed9dc39f562fcb2b79e711512dbbb6
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h
@@ -0,0 +1,36 @@
+// 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 PaintProperties_h
+#define PaintProperties_h
+
+#include <iosfwd>
+
+namespace blink {
+
+// The set of paint properties applying to a |PaintChunk|.
+// In particular, this does not mean properties like background-color, but
+// rather the hierarchy of transforms, clips, effects, etc. that apply to a
+// contiguous chunk of drawings.
+struct PaintProperties {
+ // TODO(jbroman): Add actual properties.
+};
+
+inline bool operator==(const PaintProperties&, const PaintProperties&)
+{
+ return true;
+}
+
+inline bool operator!=(const PaintProperties& a, const PaintProperties& b)
+{
+ return !(a == b);
+}
+
+// Redeclared here to avoid ODR issues.
+// See platform/testing/PaintPrinters.h.
+void PrintTo(const PaintProperties&, std::ostream*);
+
+} // namespace blink
+
+#endif // PaintProperties_h

Powered by Google App Engine
This is Rietveld 408576698