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

Side by Side Diff: src/core/SkRecorder.h

Issue 610003002: Override SkCanvas::drawImage() in SkRecorder. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase master Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const SkRect& dst, 42 const SkRect& dst,
43 const SkPaint* paint = NULL, 43 const SkPaint* paint = NULL,
44 DrawBitmapRectFlags flags = kNone_DrawBitmapRectFl ag) SK_OVERRIDE; 44 DrawBitmapRectFlags flags = kNone_DrawBitmapRectFl ag) SK_OVERRIDE;
45 void drawBitmapMatrix(const SkBitmap& bitmap, 45 void drawBitmapMatrix(const SkBitmap& bitmap,
46 const SkMatrix& m, 46 const SkMatrix& m,
47 const SkPaint* paint = NULL) SK_OVERRIDE; 47 const SkPaint* paint = NULL) SK_OVERRIDE;
48 void drawBitmapNine(const SkBitmap& bitmap, 48 void drawBitmapNine(const SkBitmap& bitmap,
49 const SkIRect& center, 49 const SkIRect& center,
50 const SkRect& dst, 50 const SkRect& dst,
51 const SkPaint* paint = NULL) SK_OVERRIDE; 51 const SkPaint* paint = NULL) SK_OVERRIDE;
52 virtual void drawImage(const SkImage* image, SkScalar left, SkScalar top,
53 const SkPaint* paint = NULL) SK_OVERRIDE;
54 virtual void drawImageRect(const SkImage* image, const SkRect* src,
55 const SkRect& dst,
56 const SkPaint* paint = NULL) SK_OVERRIDE;
52 void drawSprite(const SkBitmap& bitmap, 57 void drawSprite(const SkBitmap& bitmap,
53 int left, 58 int left,
54 int top, 59 int top,
55 const SkPaint* paint = NULL) SK_OVERRIDE; 60 const SkPaint* paint = NULL) SK_OVERRIDE;
56 void drawVertices(VertexMode vmode, 61 void drawVertices(VertexMode vmode,
57 int vertexCount, 62 int vertexCount,
58 const SkPoint vertices[], 63 const SkPoint vertices[],
59 const SkPoint texs[], 64 const SkPoint texs[],
60 const SkColor colors[], 65 const SkColor colors[],
61 SkXfermode* xmode, 66 SkXfermode* xmode,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return devBounds; 135 return devBounds;
131 } 136 }
132 137
133 SkRecord* fRecord; 138 SkRecord* fRecord;
134 139
135 int fSaveLayerCount; 140 int fSaveLayerCount;
136 SkTDArray<SkBool8> fSaveIsSaveLayer; 141 SkTDArray<SkBool8> fSaveIsSaveLayer;
137 }; 142 };
138 143
139 #endif//SkRecorder_DEFINED 144 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.cpp » ('j') | tests/RecordDrawTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698