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

Side by Side Diff: include/utils/SkDumpCanvas.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 SkDumpCanvas_DEFINED 8 #ifndef SkDumpCanvas_DEFINED
9 #define SkDumpCanvas_DEFINED 9 #define SkDumpCanvas_DEFINED
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; 86 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE;
87 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 87 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE;
88 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; 88 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE;
89 virtual bool clipRegion(const SkRegion& deviceRgn, 89 virtual bool clipRegion(const SkRegion& deviceRgn,
90 SkRegion::Op) SK_OVERRIDE; 90 SkRegion::Op) SK_OVERRIDE;
91 91
92 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 92 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
93 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 93 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
94 const SkPaint& paint) SK_OVERRIDE; 94 const SkPaint& paint) SK_OVERRIDE;
95 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; 95 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
96 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; 96 virtual void onDrawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
97 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; 97 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE;
98 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; 98 virtual void onDrawPath(const SkPath& path, const SkPaint& paint) SK_OVERRID E;
99 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 99 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
100 const SkPaint* paint) SK_OVERRIDE; 100 const SkPaint* paint) SK_OVERRIDE;
101 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 101 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
102 const SkRect& dst, const SkPaint* paint, 102 const SkRect& dst, const SkPaint* paint,
103 DrawBitmapRectFlags flags) SK_OVERRIDE; 103 DrawBitmapRectFlags flags) SK_OVERRIDE;
104 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 104 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
105 const SkPaint* paint) SK_OVERRIDE; 105 const SkPaint* paint) SK_OVERRIDE;
106 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 106 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
107 const SkPaint* paint) SK_OVERRIDE; 107 const SkPaint* paint) SK_OVERRIDE;
108 virtual void drawText(const void* text, size_t byteLength, SkScalar x, 108 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 public: 160 public:
161 SkDebugfDumper(); 161 SkDebugfDumper();
162 162
163 private: 163 private:
164 typedef SkFormatDumper INHERITED; 164 typedef SkFormatDumper INHERITED;
165 }; 165 };
166 166
167 #endif 167 #endif
168 168
169 #endif 169 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698