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

Unified Diff: src/gpu/batches/GrAADistanceFieldPathRenderer.h

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/gpu/batches/GrAAConvexTessellator.cpp ('k') | src/gpu/batches/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrAADistanceFieldPathRenderer.h
diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.h b/src/gpu/batches/GrAADistanceFieldPathRenderer.h
index c0e68268dedfe0def5ad98f7daedf3385d95f263..200d315a9762ba5ddbbbab99fefd20f024c538d3 100755
--- a/src/gpu/batches/GrAADistanceFieldPathRenderer.h
+++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.h
@@ -1,4 +1,3 @@
-
/*
* Copyright 2014 Google Inc.
*
@@ -37,7 +36,7 @@ private:
public:
// default ctor needed for new of uninitialized PathData
// since fStroke has no default ctor
- Key()
+ Key()
: fGenID(0)
, fDimension(0)
, fStroke(SkStrokeRec::kFill_InitStyle) {}
@@ -45,12 +44,12 @@ private:
: fGenID(genID)
, fDimension(dim)
, fStroke(stroke) {}
-
+
bool operator==(const Key& other) const {
return other.fGenID == fGenID && other.fDimension == fDimension &&
fStroke.hasEqualEffect(other.fStroke);
}
-
+
private:
uint32_t fGenID;
// rendered size for stored path (32x32 max, 64x64 max, 128x128 max)
@@ -64,11 +63,11 @@ private:
SkRect fBounds;
SkIPoint16 fAtlasLocation;
SK_DECLARE_INTERNAL_LLIST_INTERFACE(PathData);
-
+
static inline const Key& GetKey(const PathData& data) {
return data.fKey;
}
-
+
static inline uint32_t Hash(Key key) {
return SkChecksum::Murmur3(reinterpret_cast<const uint32_t*>(&key), sizeof(key));
}
@@ -78,11 +77,11 @@ private:
typedef SkTDynamicHash<PathData, PathData::Key> PathCache;
typedef SkTInternalLList<PathData> PathDataList;
-
+
GrBatchAtlas* fAtlas;
PathCache fPathCache;
PathDataList fPathList;
-
+
typedef GrPathRenderer INHERITED;
friend class AADistanceFieldPathBatch;
« no previous file with comments | « src/gpu/batches/GrAAConvexTessellator.cpp ('k') | src/gpu/batches/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698