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

Side by Side Diff: include/utils/SkProxyCanvas.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: check for inverse fill 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 SkProxyCanvas_DEFINED 8 #ifndef SkProxyCanvas_DEFINED
9 #define SkProxyCanvas_DEFINED 9 #define SkProxyCanvas_DEFINED
10 10
(...skipping 30 matching lines...) Expand all
41 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; 41 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE;
42 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 42 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE;
43 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; 43 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE;
44 virtual bool clipRegion(const SkRegion& deviceRgn, 44 virtual bool clipRegion(const SkRegion& deviceRgn,
45 SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRI DE; 45 SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRI DE;
46 46
47 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 47 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
48 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 48 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
49 const SkPaint& paint) SK_OVERRIDE; 49 const SkPaint& paint) SK_OVERRIDE;
50 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; 50 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
51 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
52 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; 51 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE;
53 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE;
54 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 52 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
55 const SkPaint* paint = NULL) SK_OVERRIDE; 53 const SkPaint* paint = NULL) SK_OVERRIDE;
56 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 54 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
57 const SkRect& dst, const SkPaint* paint, 55 const SkRect& dst, const SkPaint* paint,
58 DrawBitmapRectFlags flags) SK_OVERRIDE; 56 DrawBitmapRectFlags flags) SK_OVERRIDE;
59 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 57 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
60 const SkPaint* paint = NULL) SK_OVERRIDE; 58 const SkPaint* paint = NULL) SK_OVERRIDE;
61 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 59 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
62 const SkPaint* paint = NULL) SK_OVERRIDE; 60 const SkPaint* paint = NULL) SK_OVERRIDE;
63 virtual void drawText(const void* text, size_t byteLength, SkScalar x, 61 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
(...skipping 14 matching lines...) Expand all
78 const SkPaint& paint) SK_OVERRIDE; 76 const SkPaint& paint) SK_OVERRIDE;
79 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; 77 virtual void drawData(const void* data, size_t length) SK_OVERRIDE;
80 78
81 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 79 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
82 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 80 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
83 virtual void endCommentGroup() SK_OVERRIDE; 81 virtual void endCommentGroup() SK_OVERRIDE;
84 82
85 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; 83 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE;
86 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; 84 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE;
87 85
86 protected:
87 virtual void onDrawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
88 virtual void onDrawPath(const SkPath& path, const SkPaint& paint) SK_OVERRID E;
89
88 private: 90 private:
89 SkCanvas* fProxy; 91 SkCanvas* fProxy;
90 92
91 typedef SkCanvas INHERITED; 93 typedef SkCanvas INHERITED;
92 }; 94 };
93 95
94 #endif 96 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698