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

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

Issue 1124003002: Revert of Make drawImage a virtual on SkDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/core/SkPaintPriv.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 SkPictureRecord_DEFINED 8 #ifndef SkPictureRecord_DEFINED
9 #define SkPictureRecord_DEFINED 9 #define SkPictureRecord_DEFINED
10 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 void onDrawPaint(const SkPaint&) override; 178 void onDrawPaint(const SkPaint&) override;
179 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 179 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
180 void onDrawRect(const SkRect&, const SkPaint&) override; 180 void onDrawRect(const SkRect&, const SkPaint&) override;
181 void onDrawOval(const SkRect&, const SkPaint&) override; 181 void onDrawOval(const SkRect&, const SkPaint&) override;
182 void onDrawRRect(const SkRRect&, const SkPaint&) override; 182 void onDrawRRect(const SkRRect&, const SkPaint&) override;
183 void onDrawPath(const SkPath&, const SkPaint&) override; 183 void onDrawPath(const SkPath&, const SkPaint&) override;
184 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 184 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
185 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 185 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
186 DrawBitmapRectFlags flags) override; 186 DrawBitmapRectFlags flags) override;
187 #if 0
188 // rely on conversion to bitmap (for now)
187 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 189 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
188 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 190 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
189 const SkPaint*) override; 191 const SkPaint*) override;
192 #endif
190 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 193 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
191 const SkPaint*) override; 194 const SkPaint*) override;
192 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de; 195 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
193 void onDrawVertices(VertexMode vmode, int vertexCount, 196 void onDrawVertices(VertexMode vmode, int vertexCount,
194 const SkPoint vertices[], const SkPoint texs[], 197 const SkPoint vertices[], const SkPoint texs[],
195 const SkColor colors[], SkXfermode* xmode, 198 const SkColor colors[], SkXfermode* xmode,
196 const uint16_t indices[], int indexCount, 199 const uint16_t indices[], int indexCount,
197 const SkPaint&) override; 200 const SkPaint&) override;
198 201
199 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 202 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 237
235 uint32_t fRecordFlags; 238 uint32_t fRecordFlags;
236 int fInitialSaveCount; 239 int fInitialSaveCount;
237 240
238 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 241 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
239 242
240 typedef SkCanvas INHERITED; 243 typedef SkCanvas INHERITED;
241 }; 244 };
242 245
243 #endif 246 #endif
OLDNEW
« no previous file with comments | « src/core/SkPaintPriv.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698