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

Side by Side Diff: src/core/SkAAClip.h

Issue 1168303006: Revert[2] SkDraw and all Blitters to use pixmap instead of bitmapi (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add dox to new test Created 5 years, 6 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
« no previous file with comments | « include/core/SkDraw.h ('k') | src/core/SkAAClip.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 /* 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 SkAAClip_DEFINED 9 #ifndef SkAAClip_DEFINED
10 #define SkAAClip_DEFINED 10 #define SkAAClip_DEFINED
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual ~SkAAClipBlitter(); 103 virtual ~SkAAClipBlitter();
104 104
105 void init(SkBlitter* blitter, const SkAAClip* aaclip) { 105 void init(SkBlitter* blitter, const SkAAClip* aaclip) {
106 SkASSERT(aaclip && !aaclip->isEmpty()); 106 SkASSERT(aaclip && !aaclip->isEmpty());
107 fBlitter = blitter; 107 fBlitter = blitter;
108 fAAClip = aaclip; 108 fAAClip = aaclip;
109 fAAClipBounds = aaclip->getBounds(); 109 fAAClipBounds = aaclip->getBounds();
110 } 110 }
111 111
112 void blitH(int x, int y, int width) override; 112 void blitH(int x, int y, int width) override;
113 virtual void blitAntiH(int x, int y, const SkAlpha[], 113 void blitAntiH(int x, int y, const SkAlpha[], const int16_t runs[]) override ;
114 const int16_t runs[]) override;
115 void blitV(int x, int y, int height, SkAlpha alpha) override; 114 void blitV(int x, int y, int height, SkAlpha alpha) override;
116 void blitRect(int x, int y, int width, int height) override; 115 void blitRect(int x, int y, int width, int height) override;
117 void blitMask(const SkMask&, const SkIRect& clip) override; 116 void blitMask(const SkMask&, const SkIRect& clip) override;
118 const SkBitmap* justAnOpaqueColor(uint32_t* value) override; 117 const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
119 118
120 private: 119 private:
121 SkBlitter* fBlitter; 120 SkBlitter* fBlitter;
122 const SkAAClip* fAAClip; 121 const SkAAClip* fAAClip;
123 SkIRect fAAClipBounds; 122 SkIRect fAAClipBounds;
124 123
125 // point into fScanlineScratch 124 // point into fScanlineScratch
126 int16_t* fRuns; 125 int16_t* fRuns;
127 SkAlpha* fAA; 126 SkAlpha* fAA;
128 127
129 enum { 128 enum {
130 kSize = 32 * 32 129 kSize = 32 * 32
131 }; 130 };
132 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask 131 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask
133 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa 132 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa
134 133
135 void ensureRunsAndAA(); 134 void ensureRunsAndAA();
136 }; 135 };
137 136
138 #endif 137 #endif
OLDNEW
« no previous file with comments | « include/core/SkDraw.h ('k') | src/core/SkAAClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698