OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2013 The Android Open Source Project |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #include "SkCanvasSimplifier.h" |
| 9 |
| 10 SkCanvasSimplifier::SkCanvasSimplifier() {} |
| 11 |
| 12 SkCanvasSimplifier::SkCanvasSimplifier(SkBaseDevice* device) : SkCanvas(device)
{} |
| 13 |
| 14 SkCanvasSimplifier::~SkCanvasSimplifier() {} |
| 15 |
| 16 int SkCanvasSimplifier::save(SaveFlags flags) { |
| 17 return INHERITED::save(flags); |
| 18 } |
| 19 |
| 20 int SkCanvasSimplifier::saveLayer(const SkRect* bounds, const SkPaint* paint, Sa
veFlags flags) { |
| 21 return INHERITED::saveLayer(bounds, paint, flags); |
| 22 } |
| 23 |
| 24 void SkCanvasSimplifier::restore() { |
| 25 INHERITED::restore(); |
| 26 } |
| 27 |
| 28 bool SkCanvasSimplifier::isDrawingToLayer() const { |
| 29 return INHERITED::isDrawingToLayer(); |
| 30 } |
| 31 |
| 32 bool SkCanvasSimplifier::translate(SkScalar dx, SkScalar dy) { |
| 33 return INHERITED::translate(dx, dy); |
| 34 } |
| 35 |
| 36 bool SkCanvasSimplifier::scale(SkScalar sx, SkScalar sy) { |
| 37 return INHERITED::scale(sx, sy); |
| 38 } |
| 39 |
| 40 bool SkCanvasSimplifier::rotate(SkScalar degrees) { |
| 41 return INHERITED::rotate(degrees); |
| 42 } |
| 43 |
| 44 bool SkCanvasSimplifier::skew(SkScalar sx, SkScalar sy) { |
| 45 return INHERITED::skew(sx, sy); |
| 46 } |
| 47 |
| 48 bool SkCanvasSimplifier::concat(const SkMatrix& matrix) { |
| 49 return INHERITED::concat(matrix); |
| 50 } |
| 51 |
| 52 void SkCanvasSimplifier::setMatrix(const SkMatrix& matrix) { |
| 53 INHERITED::setMatrix(matrix); |
| 54 } |
| 55 |
| 56 bool SkCanvasSimplifier::clipRect(const SkRect& rect, |
| 57 SkRegion::Op op, |
| 58 bool doAntiAlias) { |
| 59 return INHERITED::clipRect(rect, op, doAntiAlias); |
| 60 } |
| 61 |
| 62 bool SkCanvasSimplifier::clipRRect(const SkRRect& rrect, SkRegion::Op op, bool d
oAntiAlias) { |
| 63 return INHERITED::clipRRect(rrect, op, doAntiAlias); |
| 64 } |
| 65 |
| 66 bool SkCanvasSimplifier::clipPath(const SkPath& path, SkRegion::Op op, bool doAn
tiAlias) { |
| 67 return INHERITED::clipPath(path, op, doAntiAlias); |
| 68 } |
| 69 |
| 70 bool SkCanvasSimplifier::clipRegion(const SkRegion& deviceRgn, SkRegion::Op op)
{ |
| 71 return INHERITED::clipRegion(deviceRgn, op); |
| 72 } |
| 73 |
| 74 void SkCanvasSimplifier::clear(SkColor color) { |
| 75 INHERITED::clear(color); |
| 76 } |
| 77 |
| 78 void SkCanvasSimplifier::drawPaint(const SkPaint& paint) { |
| 79 INHERITED::drawPaint(paint); |
| 80 } |
| 81 |
| 82 void SkCanvasSimplifier::drawPoints(PointMode mode, size_t count, const SkPoint
pts[], |
| 83 const SkPaint& paint) { |
| 84 INHERITED::drawPoints(mode, count, pts, paint); |
| 85 } |
| 86 |
| 87 void SkCanvasSimplifier::drawRect(const SkRect& rect, const SkPaint& paint) { |
| 88 INHERITED::drawRect(rect, paint); |
| 89 } |
| 90 |
| 91 void SkCanvasSimplifier::drawOval(const SkRect& oval, const SkPaint& paint) { |
| 92 INHERITED::drawOval(oval, paint); |
| 93 } |
| 94 |
| 95 void SkCanvasSimplifier::drawRRect(const SkRRect& rrect, const SkPaint& paint) { |
| 96 INHERITED::drawRRect(rrect, paint); |
| 97 } |
| 98 |
| 99 void SkCanvasSimplifier::drawPath(const SkPath& path, const SkPaint& paint) { |
| 100 INHERITED::drawPath(path, paint); |
| 101 } |
| 102 |
| 103 void SkCanvasSimplifier::drawBitmap(const SkBitmap& bitmap, SkScalar left, SkSca
lar top, |
| 104 const SkPaint* paint) { |
| 105 INHERITED::drawBitmap(bitmap, left, top, paint); |
| 106 } |
| 107 |
| 108 void SkCanvasSimplifier::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRe
ct* src, |
| 109 const SkRect& dst, |
| 110 const SkPaint* paint, |
| 111 DrawBitmapRectFlags flags) { |
| 112 INHERITED::drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
| 113 } |
| 114 |
| 115 void SkCanvasSimplifier::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix
& m, |
| 116 const SkPaint* paint) { |
| 117 INHERITED::drawBitmapMatrix(bitmap, m, paint); |
| 118 } |
| 119 |
| 120 void SkCanvasSimplifier::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& c
enter, |
| 121 const SkRect& dst, const SkPaint* paint)
{ |
| 122 INHERITED::drawBitmapNine(bitmap, center, dst, paint); |
| 123 } |
| 124 |
| 125 void SkCanvasSimplifier::drawSprite(const SkBitmap& bitmap, int left, int top, |
| 126 const SkPaint* paint) { |
| 127 INHERITED::drawSprite(bitmap, left, top, paint); |
| 128 } |
| 129 |
| 130 void SkCanvasSimplifier::drawText(const void* text, size_t byteLength, SkScalar
x, |
| 131 SkScalar y, const SkPaint& paint) { |
| 132 INHERITED::drawText(text, byteLength, x, y, paint); |
| 133 } |
| 134 |
| 135 void SkCanvasSimplifier::drawPosText(const void* text, size_t byteLength, |
| 136 const SkPoint pos[], const SkPaint& paint)
{ |
| 137 INHERITED::drawPosText(text, byteLength, pos, paint); |
| 138 } |
| 139 |
| 140 void SkCanvasSimplifier::drawPosTextH(const void* text, size_t byteLength, |
| 141 const SkScalar xpos[], SkScalar constY, |
| 142 const SkPaint& paint) { |
| 143 INHERITED::drawPosTextH(text, byteLength, xpos, constY, paint); |
| 144 } |
| 145 |
| 146 void SkCanvasSimplifier::drawTextOnPath(const void* text, size_t byteLength, |
| 147 const SkPath& path, const SkMatrix* matr
ix, |
| 148 const SkPaint& paint) { |
| 149 INHERITED::drawTextOnPath(text, byteLength, path, matrix, paint); |
| 150 } |
| 151 |
| 152 void SkCanvasSimplifier::drawPicture(SkPicture& picture) { |
| 153 INHERITED::drawPicture(picture); |
| 154 } |
| 155 |
| 156 void SkCanvasSimplifier::drawVertices(VertexMode vmode, int vertexCount, |
| 157 const SkPoint vertices[], const SkPoint texs[], |
| 158 const SkColor colors[], SkXfermode* xmode, |
| 159 const uint16_t indices[], int indexCount, |
| 160 const SkPaint& paint) { |
| 161 INHERITED::drawVertices(vmode, vertexCount, |
| 162 vertices, texs, |
| 163 colors, xmode, |
| 164 indices, indexCount, |
| 165 paint); |
| 166 } |
| 167 |
| 168 SkDrawFilter* SkCanvasSimplifier::setDrawFilter(SkDrawFilter* filter) { |
| 169 return INHERITED::setDrawFilter(filter); |
| 170 } |
OLD | NEW |