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

Unified Diff: experimental/PdfViewer/SkTrackDevice.h

Issue 1240573008: Updated PDFViewer drawImageRect() overrides (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « experimental/PdfViewer/SkNulCanvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkTrackDevice.h
diff --git a/experimental/PdfViewer/SkTrackDevice.h b/experimental/PdfViewer/SkTrackDevice.h
index 853b3f9cf16e076eae0023bebb6290cd3b7f0d78..dfa20d1c217598f8727edad5543e112bb6e9d903 100644
--- a/experimental/PdfViewer/SkTrackDevice.h
+++ b/experimental/PdfViewer/SkTrackDevice.h
@@ -48,109 +48,106 @@ protected:
}
#endif
- virtual void drawPaint(const SkDraw& dummy1, const SkPaint& paint) {
+ void drawPaint(const SkDraw& dummy1, const SkPaint& paint) override {
before();
INHERITED::drawPaint(dummy1, paint);
after();
}
- virtual void drawPoints(const SkDraw& dummy1, SkCanvas::PointMode mode, size_t count,
- const SkPoint dummy2[], const SkPaint& paint) {
+ void drawPoints(const SkDraw& dummy1, SkCanvas::PointMode mode, size_t count,
+ const SkPoint dummy2[], const SkPaint& paint) override {
before();
INHERITED::drawPoints(dummy1, mode, count, dummy2, paint);
after();
}
- virtual void drawRect(const SkDraw& dummy1, const SkRect& r,
- const SkPaint& paint) {
+ void drawRect(const SkDraw& dummy1, const SkRect& r, const SkPaint& paint) override {
before();
INHERITED::drawRect(dummy1, r, paint);
after();
}
- virtual void drawOval(const SkDraw& dummy1, const SkRect& oval,
- const SkPaint& paint) {
+ void drawOval(const SkDraw& dummy1, const SkRect& oval, const SkPaint& paint) override {
before();
INHERITED::drawOval(dummy1, oval, paint);
after();
}
- virtual void drawRRect(const SkDraw& dummy1, const SkRRect& rr,
- const SkPaint& paint) {
+ void drawRRect(const SkDraw& dummy1, const SkRRect& rr, const SkPaint& paint) override {
before();
INHERITED::drawRRect(dummy1, rr, paint);
after();
}
- virtual void drawPath(const SkDraw& dummy1, const SkPath& path,
- const SkPaint& paint,
- const SkMatrix* prePathMatrix = NULL,
- bool pathIsMutable = false) {
+ void drawPath(const SkDraw& dummy1, const SkPath& path,
+ const SkPaint& paint,
+ const SkMatrix* prePathMatrix = NULL,
+ bool pathIsMutable = false) override {
before();
INHERITED::drawPath(dummy1, path, paint, prePathMatrix, pathIsMutable);
after();
}
- virtual void drawBitmap(const SkDraw& dummy1, const SkBitmap& bitmap,
- const SkMatrix& matrix, const SkPaint& paint) {
+ void drawBitmap(const SkDraw& dummy1, const SkBitmap& bitmap,
+ const SkMatrix& matrix, const SkPaint& paint) override {
before();
INHERITED::drawBitmap(dummy1, bitmap, matrix, paint);
after();
}
- virtual void drawSprite(const SkDraw& dummy1, const SkBitmap& bitmap,
- int x, int y, const SkPaint& paint) {
+ void drawSprite(const SkDraw& dummy1, const SkBitmap& bitmap,
+ int x, int y, const SkPaint& paint) override {
before();
INHERITED::drawSprite(dummy1, bitmap, x, y, paint);
after();
}
- virtual void drawBitmapRect(const SkDraw& dummy1, const SkBitmap& dummy2,
- const SkRect* srcOrNull, const SkRect& dst,
- const SkPaint& paint,
- SkCanvas::DrawBitmapRectFlags flags) {
+ void drawBitmapRect(const SkDraw& dummy1, const SkBitmap& dummy2,
+ const SkRect* srcOrNull, const SkRect& dst,
+ const SkPaint& paint,
+ SK_VIRTUAL_CONSTRAINT_TYPE flags) override {
before();
INHERITED::drawBitmapRect(dummy1, dummy2, srcOrNull, dst, paint, flags);
after();
}
- virtual void drawText(const SkDraw& dummy1, const void* text, size_t len,
- SkScalar x, SkScalar y, const SkPaint& paint) {
+ void drawText(const SkDraw& dummy1, const void* text, size_t len,
+ SkScalar x, SkScalar y, const SkPaint& paint) override {
before();
INHERITED::drawText(dummy1, text, len, x, y, paint);
after();
}
- virtual void drawPosText(const SkDraw& dummy1, const void* text, size_t len,
- const SkScalar pos[], int scalarsPerPos,
- const SkPoint& offset, const SkPaint& paint) {
+ void drawPosText(const SkDraw& dummy1, const void* text, size_t len,
+ const SkScalar pos[], int scalarsPerPos,
+ const SkPoint& offset, const SkPaint& paint) override {
before();
INHERITED::drawPosText(dummy1, text, len, pos, scalarsPerPos, offset, paint);
after();
}
- virtual void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t len,
- const SkPath& path, const SkMatrix* matrix,
- const SkPaint& paint) {
+ void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t len,
+ const SkPath& path, const SkMatrix* matrix,
+ const SkPaint& paint) override {
before();
INHERITED::drawTextOnPath(dummy1, text, len, path, matrix, paint);
after();
}
- virtual void drawVertices(const SkDraw& dummy1, SkCanvas::VertexMode dummy2, int vertexCount,
- const SkPoint verts[], const SkPoint texs[],
- const SkColor colors[], SkXfermode* xmode,
- const uint16_t indices[], int indexCount,
- const SkPaint& paint) {
+ void drawVertices(const SkDraw& dummy1, SkCanvas::VertexMode dummy2, int vertexCount,
+ const SkPoint verts[], const SkPoint texs[],
+ const SkColor colors[], SkXfermode* xmode,
+ const uint16_t indices[], int indexCount,
+ const SkPaint& paint) override {
before();
INHERITED::drawVertices(dummy1, dummy2, vertexCount,verts, texs,colors, xmode, indices,
indexCount, paint);
after();
}
- virtual void drawDevice(const SkDraw& dummy1, SkBaseDevice* dummy2, int x, int y,
- const SkPaint& dummy3) {
+ void drawDevice(const SkDraw& dummy1, SkBaseDevice* dummy2, int x, int y,
+ const SkPaint& dummy3) override {
before();
INHERITED::drawDevice(dummy1, dummy2, x, y, dummy3);
after();
« no previous file with comments | « experimental/PdfViewer/SkNulCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698