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

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

Issue 1164373003: Revert of change SkDraw and all Blitters to use pixmap instead of bitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « src/core/SkAAClip.h ('k') | src/core/SkBlitBWMaskTemplate.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 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 #include "SkAAClip.h" 9 #include "SkAAClip.h"
10 #include "SkBlitter.h" 10 #include "SkBlitter.h"
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 SkAlpha leftAlpha, SkAlpha rightAlpha) override { 1290 SkAlpha leftAlpha, SkAlpha rightAlpha) override {
1291 this->recordMinY(y); 1291 this->recordMinY(y);
1292 this->checkForYGap(y); 1292 this->checkForYGap(y);
1293 fBuilder->addAntiRectRun(x, y, width, height, leftAlpha, rightAlpha); 1293 fBuilder->addAntiRectRun(x, y, width, height, leftAlpha, rightAlpha);
1294 fLastY = y + height - 1; 1294 fLastY = y + height - 1;
1295 } 1295 }
1296 1296
1297 void blitMask(const SkMask&, const SkIRect& clip) override 1297 void blitMask(const SkMask&, const SkIRect& clip) override
1298 { unexpected(); } 1298 { unexpected(); }
1299 1299
1300 const SkPixmap* justAnOpaqueColor(uint32_t*) override { 1300 const SkBitmap* justAnOpaqueColor(uint32_t*) override {
1301 return NULL; 1301 return NULL;
1302 } 1302 }
1303 1303
1304 void blitH(int x, int y, int width) override { 1304 void blitH(int x, int y, int width) override {
1305 this->recordMinY(y); 1305 this->recordMinY(y);
1306 this->checkForYGap(y); 1306 this->checkForYGap(y);
1307 fBuilder->addRun(x, y, 0xFF, width); 1307 fBuilder->addRun(x, y, 0xFF, width);
1308 } 1308 }
1309 1309
1310 virtual void blitAntiH(int x, int y, const SkAlpha alpha[], 1310 virtual void blitAntiH(int x, int y, const SkAlpha alpha[],
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
2212 do { 2212 do {
2213 mergeProc(src, width, row, initialCount, rowMask.fImage); 2213 mergeProc(src, width, row, initialCount, rowMask.fImage);
2214 rowMask.fBounds.fTop = y; 2214 rowMask.fBounds.fTop = y;
2215 rowMask.fBounds.fBottom = y + 1; 2215 rowMask.fBounds.fBottom = y + 1;
2216 fBlitter->blitMask(rowMask, rowMask.fBounds); 2216 fBlitter->blitMask(rowMask, rowMask.fBounds);
2217 src = (const void*)((const char*)src + srcRB); 2217 src = (const void*)((const char*)src + srcRB);
2218 } while (++y < localStopY); 2218 } while (++y < localStopY);
2219 } while (y < stopY); 2219 } while (y < stopY);
2220 } 2220 }
2221 2221
2222 const SkPixmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) { 2222 const SkBitmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) {
2223 return NULL; 2223 return NULL;
2224 } 2224 }
OLDNEW
« no previous file with comments | « src/core/SkAAClip.h ('k') | src/core/SkBlitBWMaskTemplate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698