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

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

Issue 23484007: call drawRect to try GrAARectRenderer if the path is a rect (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: if the path is a rect, call drawRect in SkCanvas::drawPath for potential accelerated rasterization … Created 7 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkPictureRecord_DEFINED 8 #ifndef SkPictureRecord_DEFINED
9 #define SkPictureRecord_DEFINED 9 #define SkPictureRecord_DEFINED
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; 46 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE;
47 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; 47 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE;
48 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 48 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE;
49 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; 49 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE;
50 virtual bool clipRegion(const SkRegion& region, SkRegion::Op op) SK_OVERRIDE ; 50 virtual bool clipRegion(const SkRegion& region, SkRegion::Op op) SK_OVERRIDE ;
51 virtual void clear(SkColor) SK_OVERRIDE; 51 virtual void clear(SkColor) SK_OVERRIDE;
52 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 52 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
53 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], 53 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[],
54 const SkPaint&) SK_OVERRIDE; 54 const SkPaint&) SK_OVERRIDE;
55 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 55 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE;
56 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 56 virtual void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE;
57 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; 57 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE;
58 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; 58 virtual void onDrawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE;
59 virtual void drawBitmap(const SkBitmap&, SkScalar left, SkScalar top, 59 virtual void drawBitmap(const SkBitmap&, SkScalar left, SkScalar top,
60 const SkPaint*) SK_OVERRIDE; 60 const SkPaint*) SK_OVERRIDE;
61 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src, 61 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src,
62 const SkRect& dst, const SkPaint* paint, 62 const SkRect& dst, const SkPaint* paint,
63 DrawBitmapRectFlags flags) SK_OVERRIDE; 63 DrawBitmapRectFlags flags) SK_OVERRIDE;
64 virtual void drawBitmapMatrix(const SkBitmap&, const SkMatrix&, 64 virtual void drawBitmapMatrix(const SkBitmap&, const SkMatrix&,
65 const SkPaint*) SK_OVERRIDE; 65 const SkPaint*) SK_OVERRIDE;
66 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 66 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
67 const SkRect& dst, const SkPaint*) SK_OVERRIDE; 67 const SkRect& dst, const SkPaint*) SK_OVERRIDE;
68 virtual void drawSprite(const SkBitmap&, int left, int top, 68 virtual void drawSprite(const SkBitmap&, int left, int top,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 uint32_t fRecordFlags; 262 uint32_t fRecordFlags;
263 int fInitialSaveCount; 263 int fInitialSaveCount;
264 264
265 friend class SkPicturePlayback; 265 friend class SkPicturePlayback;
266 friend class SkPictureTester; // for unit testing 266 friend class SkPictureTester; // for unit testing
267 267
268 typedef SkCanvas INHERITED; 268 typedef SkCanvas INHERITED;
269 }; 269 };
270 270
271 #endif 271 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698