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

Side by Side Diff: include/core/SkDrawFilter.h

Issue 13852049: Add GPU support for roundrects (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add oval check to SkCanvas Created 7 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkDevice.h ('k') | include/gpu/GrContext.h » ('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 /* 2 /*
3 * Copyright 2011 The Android Open Source Project 3 * Copyright 2011 The Android Open Source Project
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 9
10 #ifndef SkDrawFilter_DEFINED 10 #ifndef SkDrawFilter_DEFINED
(...skipping 13 matching lines...) Expand all
24 class SK_API SkDrawFilter : public SkRefCnt { 24 class SK_API SkDrawFilter : public SkRefCnt {
25 public: 25 public:
26 SK_DECLARE_INST_COUNT(SkDrawFilter) 26 SK_DECLARE_INST_COUNT(SkDrawFilter)
27 27
28 enum Type { 28 enum Type {
29 kPaint_Type, 29 kPaint_Type,
30 kPoint_Type, 30 kPoint_Type,
31 kLine_Type, 31 kLine_Type,
32 kBitmap_Type, 32 kBitmap_Type,
33 kRect_Type, 33 kRect_Type,
34 kRRect_Type,
34 kOval_Type, 35 kOval_Type,
35 kPath_Type, 36 kPath_Type,
36 kText_Type, 37 kText_Type,
37 }; 38 };
38 39
39 enum { 40 enum {
40 kTypeCount = kText_Type + 1 41 kTypeCount = kText_Type + 1
41 }; 42 };
42 43
43 /** 44 /**
44 * Called with the paint that will be used to draw the specified type. 45 * Called with the paint that will be used to draw the specified type.
45 * The implementation may modify the paint as they wish. If filter() 46 * The implementation may modify the paint as they wish. If filter()
46 * returns false, the draw will be skipped. 47 * returns false, the draw will be skipped.
47 */ 48 */
48 virtual bool filter(SkPaint*, Type) = 0; 49 virtual bool filter(SkPaint*, Type) = 0;
49 50
50 private: 51 private:
51 typedef SkRefCnt INHERITED; 52 typedef SkRefCnt INHERITED;
52 }; 53 };
53 54
54 #endif 55 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698