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

Side by Side Diff: src/gpu/GrSWMaskHelper.h

Issue 57883006: Revert "speed up A8 by creating a new entry-point in SkDraw that blits the path's coverage directly… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | « src/core/SkDraw.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrSWMaskHelper_DEFINED 8 #ifndef GrSWMaskHelper_DEFINED
9 #define GrSWMaskHelper_DEFINED 9 #define GrSWMaskHelper_DEFINED
10 10
(...skipping 30 matching lines...) Expand all
41 class GrSWMaskHelper : public SkNoncopyable { 41 class GrSWMaskHelper : public SkNoncopyable {
42 public: 42 public:
43 GrSWMaskHelper(GrContext* context) 43 GrSWMaskHelper(GrContext* context)
44 : fContext(context) { 44 : fContext(context) {
45 } 45 }
46 46
47 // set up the internal state in preparation for draws. Since many masks 47 // set up the internal state in preparation for draws. Since many masks
48 // may be accumulated in the helper during creation, "resultBounds" 48 // may be accumulated in the helper during creation, "resultBounds"
49 // allows the caller to specify the region of interest - to limit the 49 // allows the caller to specify the region of interest - to limit the
50 // amount of work. 50 // amount of work.
51 bool init(const SkIRect& resultBounds, const SkMatrix* matrix, 51 bool init(const SkIRect& resultBounds, const SkMatrix* matrix);
52 bool zeroPixels = true);
53 52
54 // Draw a single rect into the accumulation bitmap using the specified op 53 // Draw a single rect into the accumulation bitmap using the specified op
55 void draw(const SkRect& rect, SkRegion::Op op, 54 void draw(const SkRect& rect, SkRegion::Op op,
56 bool antiAlias, uint8_t alpha); 55 bool antiAlias, uint8_t alpha);
57 56
58 // Draw a single path into the accumuation bitmap using the specified op 57 // Draw a single path into the accumuation bitmap using the specified op
59 void draw(const SkPath& path, const SkStrokeRec& stroke, SkRegion::Op op, 58 void draw(const SkPath& path, const SkStrokeRec& stroke, SkRegion::Op op,
60 bool antiAlias, uint8_t alpha); 59 bool antiAlias, uint8_t alpha);
61 60
62 // Helper function to get a scratch texture suitable for capturing the 61 // Helper function to get a scratch texture suitable for capturing the
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 GrContext* fContext; 98 GrContext* fContext;
100 SkMatrix fMatrix; 99 SkMatrix fMatrix;
101 SkBitmap fBM; 100 SkBitmap fBM;
102 SkDraw fDraw; 101 SkDraw fDraw;
103 SkRasterClip fRasterClip; 102 SkRasterClip fRasterClip;
104 103
105 typedef SkNoncopyable INHERITED; 104 typedef SkNoncopyable INHERITED;
106 }; 105 };
107 106
108 #endif // GrSWMaskHelper_DEFINED 107 #endif // GrSWMaskHelper_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkDraw.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698