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

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

Issue 1390123002: (WIP) Paint property hierarchy approach 1 of 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
index 69a6651de7ed9dc39f562fcb2b79e711512dbbb6..31c8b34241796b65cc3fe60f1ff16c9d37061e10 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h
@@ -9,17 +9,19 @@
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.
+// The set of paint properties applying to a |PaintChunk|. Each property index
+// maps back to a paint property in the |PaintArtifact|'s property vectors.
+// These properties are not simple color changes but instead represent the
+// hierachy of transforms, clips, effects, etc, that apply to a contiguous
+// chunk of display items.
struct PaintProperties {
- // TODO(jbroman): Add actual properties.
+ // TODO(pdr): Add clip, scroll, and effect property indices.
+ size_t transformIndex;
};
-inline bool operator==(const PaintProperties&, const PaintProperties&)
+inline bool operator==(const PaintProperties& a, const PaintProperties& b)
{
- return true;
+ return a.transformIndex == b.transformIndex;
}
inline bool operator!=(const PaintProperties& a, const PaintProperties& b)

Powered by Google App Engine
This is Rietveld 408576698