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

Side by Side Diff: include/utils/SkNWayCanvas.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 8
9 #ifndef SkNWayCanvas_DEFINED 9 #ifndef SkNWayCanvas_DEFINED
10 #define SkNWayCanvas_DEFINED 10 #define SkNWayCanvas_DEFINED
(...skipping 25 matching lines...) Expand all
36 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; 36 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE;
37 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 37 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE;
38 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; 38 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE;
39 virtual bool clipRegion(const SkRegion& deviceRgn, 39 virtual bool clipRegion(const SkRegion& deviceRgn,
40 SkRegion::Op) SK_OVERRIDE; 40 SkRegion::Op) SK_OVERRIDE;
41 41
42 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 42 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
43 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 43 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
44 const SkPaint&) SK_OVERRIDE; 44 const SkPaint&) SK_OVERRIDE;
45 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 45 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE;
46 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 46 virtual void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE;
47 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; 47 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE;
48 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; 48 virtual void onDrawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE;
49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
50 const SkPaint*) SK_OVERRIDE; 50 const SkPaint*) SK_OVERRIDE;
51 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 51 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
52 const SkRect& dst, const SkPaint* paint, 52 const SkRect& dst, const SkPaint* paint,
53 DrawBitmapRectFlags flags) SK_OVERRIDE; 53 DrawBitmapRectFlags flags) SK_OVERRIDE;
54 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 54 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
55 const SkPaint*) SK_OVERRIDE; 55 const SkPaint*) SK_OVERRIDE;
56 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 56 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
57 const SkPaint*) SK_OVERRIDE; 57 const SkPaint*) SK_OVERRIDE;
58 virtual void drawText(const void* text, size_t byteLength, SkScalar x, 58 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
(...skipping 24 matching lines...) Expand all
83 SkTDArray<SkCanvas*> fList; 83 SkTDArray<SkCanvas*> fList;
84 84
85 class Iter; 85 class Iter;
86 86
87 private: 87 private:
88 typedef SkCanvas INHERITED; 88 typedef SkCanvas INHERITED;
89 }; 89 };
90 90
91 91
92 #endif 92 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698