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

Unified Diff: Source/core/svg/SVGPathByteStreamBuilder.h

Issue 149913004: Coalesce writes in SVGPathByteStreamBuilder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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: Source/core/svg/SVGPathByteStreamBuilder.h
diff --git a/Source/core/svg/SVGPathByteStreamBuilder.h b/Source/core/svg/SVGPathByteStreamBuilder.h
index 759ebc7ac3e43037375efe70f5268fd4114942e3..493b77ac04e08034b27400b73ee6b1742c276a13 100644
--- a/Source/core/svg/SVGPathByteStreamBuilder.h
+++ b/Source/core/svg/SVGPathByteStreamBuilder.h
@@ -53,25 +53,6 @@ private:
virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) OVERRIDE;
virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, PathCoordinateMode) OVERRIDE;
- template<typename DataType>
- void writeType(DataType value)
- {
- ByteType<DataType> data;
- data.value = value;
- size_t typeSize = sizeof(ByteType<DataType>);
- for (size_t i = 0; i < typeSize; ++i)
- m_byteStream->append(data.bytes[i]);
- }
-
- void writeFlag(bool value) { writeType<bool>(value); }
- void writeFloat(float value) { writeType<float>(value); }
- void writeFloatPoint(const FloatPoint& point)
- {
- writeType<float>(point.x());
- writeType<float>(point.y());
- }
- void writeSegmentType(unsigned short value) { writeType<unsigned short>(value); }
-
SVGPathByteStream* m_byteStream;
};
« no previous file with comments | « no previous file | Source/core/svg/SVGPathByteStreamBuilder.cpp » ('j') | Source/core/svg/SVGPathByteStreamBuilder.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698