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

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

Issue 2053823002: Make SkBlitter hierarchy explicit about what needs to be implemented. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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/SkLinearBitmapPipeline_sample.h ('k') | src/core/SkSpriteBlitter.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 #include "SkRegionPriv.h" 8 #include "SkRegionPriv.h"
9 #include "SkBlitter.h" 9 #include "SkBlitter.h"
10 #include "SkScan.h" 10 #include "SkScan.h"
(...skipping 27 matching lines...) Expand all
38 fCurrScanline = fCurrScanline->nextScanline(); 38 fCurrScanline = fCurrScanline->nextScanline();
39 } 39 }
40 } 40 }
41 } 41 }
42 42
43 int computeRunCount() const; 43 int computeRunCount() const;
44 void copyToRect(SkIRect*) const; 44 void copyToRect(SkIRect*) const;
45 void copyToRgn(SkRegion::RunType runs[]) const; 45 void copyToRgn(SkRegion::RunType runs[]) const;
46 46
47 void blitH(int x, int y, int width) override; 47 void blitH(int x, int y, int width) override;
48 void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[] ) override {
49 SkDEBUGFAIL("blitAntiH not implemented");
50 }
48 51
49 #ifdef SK_DEBUG 52 #ifdef SK_DEBUG
50 void dump() const { 53 void dump() const {
51 SkDebugf("SkRgnBuilder: Top = %d\n", fTop); 54 SkDebugf("SkRgnBuilder: Top = %d\n", fTop);
52 const Scanline* line = (Scanline*)fStorage; 55 const Scanline* line = (Scanline*)fStorage;
53 while (line < fCurrScanline) { 56 while (line < fCurrScanline) {
54 SkDebugf("SkRgnBuilder::Scanline: LastY=%d, fXCount=%d", line->fLast Y, line->fXCount); 57 SkDebugf("SkRgnBuilder::Scanline: LastY=%d, fXCount=%d", line->fLast Y, line->fXCount);
55 for (int i = 0; i < line->fXCount; i++) { 58 for (int i = 0; i < line->fXCount; i++) {
56 SkDebugf(" %d", line->firstX()[i]); 59 SkDebugf(" %d", line->firstX()[i]);
57 } 60 }
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 #endif 531 #endif
529 532
530 path->incReserve(count << 1); 533 path->incReserve(count << 1);
531 do { 534 do {
532 SkASSERT(count > 1); 535 SkASSERT(count > 1);
533 count -= extract_path(start, stop, path); 536 count -= extract_path(start, stop, path);
534 } while (count > 0); 537 } while (count > 0);
535 538
536 return true; 539 return true;
537 } 540 }
OLDNEW
« no previous file with comments | « src/core/SkLinearBitmapPipeline_sample.h ('k') | src/core/SkSpriteBlitter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698