Index: src/doc/SkCanvasSimplifier.cpp |
diff --git a/src/doc/SkCanvasSimplifier.cpp b/src/doc/SkCanvasSimplifier.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..618bd005d8ece88721bff75640418631076310a3 |
--- /dev/null |
+++ b/src/doc/SkCanvasSimplifier.cpp |
@@ -0,0 +1,170 @@ |
+/* |
+ * Copyright 2013 The Android Open Source Project |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#include "SkCanvasSimplifier.h" |
+ |
+SkCanvasSimplifier::SkCanvasSimplifier() {} |
+ |
+SkCanvasSimplifier::SkCanvasSimplifier(SkBaseDevice* device) : SkCanvas(device) {} |
+ |
+SkCanvasSimplifier::~SkCanvasSimplifier() {} |
+ |
+int SkCanvasSimplifier::save(SaveFlags flags) { |
+ return INHERITED::save(flags); |
+} |
+ |
+int SkCanvasSimplifier::saveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags) { |
+ return INHERITED::saveLayer(bounds, paint, flags); |
+} |
+ |
+void SkCanvasSimplifier::restore() { |
+ INHERITED::restore(); |
+} |
+ |
+bool SkCanvasSimplifier::isDrawingToLayer() const { |
+ return INHERITED::isDrawingToLayer(); |
+} |
+ |
+bool SkCanvasSimplifier::translate(SkScalar dx, SkScalar dy) { |
+ return INHERITED::translate(dx, dy); |
+} |
+ |
+bool SkCanvasSimplifier::scale(SkScalar sx, SkScalar sy) { |
+ return INHERITED::scale(sx, sy); |
+} |
+ |
+bool SkCanvasSimplifier::rotate(SkScalar degrees) { |
+ return INHERITED::rotate(degrees); |
+} |
+ |
+bool SkCanvasSimplifier::skew(SkScalar sx, SkScalar sy) { |
+ return INHERITED::skew(sx, sy); |
+} |
+ |
+bool SkCanvasSimplifier::concat(const SkMatrix& matrix) { |
+ return INHERITED::concat(matrix); |
+} |
+ |
+void SkCanvasSimplifier::setMatrix(const SkMatrix& matrix) { |
+ INHERITED::setMatrix(matrix); |
+} |
+ |
+bool SkCanvasSimplifier::clipRect(const SkRect& rect, |
+ SkRegion::Op op, |
+ bool doAntiAlias) { |
+ return INHERITED::clipRect(rect, op, doAntiAlias); |
+} |
+ |
+bool SkCanvasSimplifier::clipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAntiAlias) { |
+ return INHERITED::clipRRect(rrect, op, doAntiAlias); |
+} |
+ |
+bool SkCanvasSimplifier::clipPath(const SkPath& path, SkRegion::Op op, bool doAntiAlias) { |
+ return INHERITED::clipPath(path, op, doAntiAlias); |
+} |
+ |
+bool SkCanvasSimplifier::clipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
+ return INHERITED::clipRegion(deviceRgn, op); |
+} |
+ |
+void SkCanvasSimplifier::clear(SkColor color) { |
+ INHERITED::clear(color); |
+} |
+ |
+void SkCanvasSimplifier::drawPaint(const SkPaint& paint) { |
+ INHERITED::drawPaint(paint); |
+} |
+ |
+void SkCanvasSimplifier::drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
+ const SkPaint& paint) { |
+ INHERITED::drawPoints(mode, count, pts, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawRect(const SkRect& rect, const SkPaint& paint) { |
+ INHERITED::drawRect(rect, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawOval(const SkRect& oval, const SkPaint& paint) { |
+ INHERITED::drawOval(oval, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawRRect(const SkRRect& rrect, const SkPaint& paint) { |
+ INHERITED::drawRRect(rrect, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawPath(const SkPath& path, const SkPaint& paint) { |
+ INHERITED::drawPath(path, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
+ const SkPaint* paint) { |
+ INHERITED::drawBitmap(bitmap, left, top, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
+ const SkRect& dst, |
+ const SkPaint* paint, |
+ DrawBitmapRectFlags flags) { |
+ INHERITED::drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
+} |
+ |
+void SkCanvasSimplifier::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
+ const SkPaint* paint) { |
+ INHERITED::drawBitmapMatrix(bitmap, m, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
+ const SkRect& dst, const SkPaint* paint) { |
+ INHERITED::drawBitmapNine(bitmap, center, dst, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawSprite(const SkBitmap& bitmap, int left, int top, |
+ const SkPaint* paint) { |
+ INHERITED::drawSprite(bitmap, left, top, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawText(const void* text, size_t byteLength, SkScalar x, |
+ SkScalar y, const SkPaint& paint) { |
+ INHERITED::drawText(text, byteLength, x, y, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawPosText(const void* text, size_t byteLength, |
+ const SkPoint pos[], const SkPaint& paint) { |
+ INHERITED::drawPosText(text, byteLength, pos, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawPosTextH(const void* text, size_t byteLength, |
+ const SkScalar xpos[], SkScalar constY, |
+ const SkPaint& paint) { |
+ INHERITED::drawPosTextH(text, byteLength, xpos, constY, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawTextOnPath(const void* text, size_t byteLength, |
+ const SkPath& path, const SkMatrix* matrix, |
+ const SkPaint& paint) { |
+ INHERITED::drawTextOnPath(text, byteLength, path, matrix, paint); |
+} |
+ |
+void SkCanvasSimplifier::drawPicture(SkPicture& picture) { |
+ INHERITED::drawPicture(picture); |
+} |
+ |
+void SkCanvasSimplifier::drawVertices(VertexMode vmode, int vertexCount, |
+ const SkPoint vertices[], const SkPoint texs[], |
+ const SkColor colors[], SkXfermode* xmode, |
+ const uint16_t indices[], int indexCount, |
+ const SkPaint& paint) { |
+ INHERITED::drawVertices(vmode, vertexCount, |
+ vertices, texs, |
+ colors, xmode, |
+ indices, indexCount, |
+ paint); |
+} |
+ |
+SkDrawFilter* SkCanvasSimplifier::setDrawFilter(SkDrawFilter* filter) { |
+ return INHERITED::setDrawFilter(filter); |
+} |