| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void onDrawRRect(const SkRRect&, const SkPaint&) override = 0; | 74 void onDrawRRect(const SkRRect&, const SkPaint&) override = 0; |
| 75 void onDrawPath(const SkPath&, const SkPaint&) override = 0; | 75 void onDrawPath(const SkPath&, const SkPaint&) override = 0; |
| 76 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override = 0; | 76 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override = 0; |
| 77 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, DrawBitmapRectFlags) override = 0; | 77 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, DrawBitmapRectFlags) override = 0; |
| 78 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, const SkPaint*) override = 0; | 78 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, const SkPaint*) override = 0; |
| 79 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e = 0; | 79 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e = 0; |
| 80 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, c
onst SkPaint*) override = 0; | 80 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, c
onst SkPaint*) override = 0; |
| 81 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de = 0; | 81 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de = 0; |
| 82 void onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertice
s[], const SkPoint texs[], | 82 void onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertice
s[], const SkPoint texs[], |
| 83 const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int
indexCount, const SkPaint&) override = 0; | 83 const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int
indexCount, const SkPaint&) override = 0; |
| 84 void beginCommentGroup(const char* description) override = 0; | |
| 85 void addComment(const char* keyword, const char* value) override = 0; | |
| 86 void endCommentGroup() override = 0; | |
| 87 | 84 |
| 88 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint&
) override = 0; | 85 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint&
) override = 0; |
| 89 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
const SkPaint&) override = 0; | 86 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
const SkPaint&) override = 0; |
| 90 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[],
const SkPaint&) override = 0; | 87 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[],
const SkPaint&) override = 0; |
| 91 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], SkScalar constY, const SkPaint&) override = 0; | 88 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], SkScalar constY, const SkPaint&) override = 0; |
| 92 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath&, co
nst SkMatrix*, const SkPaint&) override = 0; | 89 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath&, co
nst SkMatrix*, const SkPaint&) override = 0; |
| 93 void onDrawTextBlob(const SkTextBlob*, SkScalar x, SkScalar y, const SkPaint
&) override = 0; | 90 void onDrawTextBlob(const SkTextBlob*, SkScalar x, SkScalar y, const SkPaint
&) override = 0; |
| 94 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override = 0; | 91 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override = 0; |
| 95 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override = 0; | 92 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override = 0; |
| 96 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override = 0; | 93 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override = 0; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 this->SkCanvas::onDrawSprite(bitmap, left, top, paint); | 187 this->SkCanvas::onDrawSprite(bitmap, left, top, paint); |
| 191 } | 188 } |
| 192 | 189 |
| 193 void onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertice
s[], const SkPoint texs[], | 190 void onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertice
s[], const SkPoint texs[], |
| 194 const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int
indexCount, const SkPaint& paint) override | 191 const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int
indexCount, const SkPaint& paint) override |
| 195 { | 192 { |
| 196 Interceptor interceptor(this); | 193 Interceptor interceptor(this); |
| 197 this->SkCanvas::onDrawVertices(vmode, vertexCount, vertices, texs, color
s, xmode, indices, indexCount, paint); | 194 this->SkCanvas::onDrawVertices(vmode, vertexCount, vertices, texs, color
s, xmode, indices, indexCount, paint); |
| 198 } | 195 } |
| 199 | 196 |
| 200 void beginCommentGroup(const char* description) override | |
| 201 { | |
| 202 Interceptor interceptor(this); | |
| 203 this->SkCanvas::beginCommentGroup(description); | |
| 204 } | |
| 205 | |
| 206 void addComment(const char* keyword, const char* value) override | |
| 207 { | |
| 208 Interceptor interceptor(this); | |
| 209 this->SkCanvas::addComment(keyword, value); | |
| 210 } | |
| 211 | |
| 212 void endCommentGroup() override | |
| 213 { | |
| 214 Interceptor interceptor(this); | |
| 215 this->SkCanvas::endCommentGroup(); | |
| 216 } | |
| 217 | |
| 218 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint&
paint) override | 197 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint&
paint) override |
| 219 { | 198 { |
| 220 Interceptor interceptor(this); | 199 Interceptor interceptor(this); |
| 221 this->SkCanvas::onDrawDRRect(outer, inner, paint); | 200 this->SkCanvas::onDrawDRRect(outer, inner, paint); |
| 222 } | 201 } |
| 223 | 202 |
| 224 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
const SkPaint& paint) override | 203 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
const SkPaint& paint) override |
| 225 { | 204 { |
| 226 Interceptor interceptor(this); | 205 Interceptor interceptor(this); |
| 227 this->SkCanvas::onDrawText(text, byteLength, x, y, paint); | 206 this->SkCanvas::onDrawText(text, byteLength, x, y, paint); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 void willRestore() override | 287 void willRestore() override |
| 309 { | 288 { |
| 310 Interceptor interceptor(this); | 289 Interceptor interceptor(this); |
| 311 this->SkCanvas::willRestore(); | 290 this->SkCanvas::willRestore(); |
| 312 } | 291 } |
| 313 }; | 292 }; |
| 314 | 293 |
| 315 } // namespace blink | 294 } // namespace blink |
| 316 | 295 |
| 317 #endif // InterceptingCanvas_h | 296 #endif // InterceptingCanvas_h |
| OLD | NEW |