| OLD | NEW |
| 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 "SkScanPriv.h" | 8 #include "SkScanPriv.h" |
| 9 #include "SkBlitter.h" | 9 #include "SkBlitter.h" |
| 10 #include "SkEdge.h" | 10 #include "SkEdge.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 } | 337 } |
| 338 void blitV(int x, int y, int height, SkAlpha alpha) override { | 338 void blitV(int x, int y, int height, SkAlpha alpha) override { |
| 339 SkDEBUGFAIL("blitV unexpected"); | 339 SkDEBUGFAIL("blitV unexpected"); |
| 340 } | 340 } |
| 341 void blitRect(int x, int y, int width, int height) override { | 341 void blitRect(int x, int y, int width, int height) override { |
| 342 SkDEBUGFAIL("blitRect unexpected"); | 342 SkDEBUGFAIL("blitRect unexpected"); |
| 343 } | 343 } |
| 344 void blitMask(const SkMask&, const SkIRect& clip) override { | 344 void blitMask(const SkMask&, const SkIRect& clip) override { |
| 345 SkDEBUGFAIL("blitMask unexpected"); | 345 SkDEBUGFAIL("blitMask unexpected"); |
| 346 } | 346 } |
| 347 const SkBitmap* justAnOpaqueColor(uint32_t* value) override { | 347 const SkPixmap* justAnOpaqueColor(uint32_t* value) override { |
| 348 SkDEBUGFAIL("justAnOpaqueColor unexpected"); | 348 SkDEBUGFAIL("justAnOpaqueColor unexpected"); |
| 349 return NULL; | 349 return NULL; |
| 350 } | 350 } |
| 351 | 351 |
| 352 private: | 352 private: |
| 353 SkBlitter* fBlitter; | 353 SkBlitter* fBlitter; |
| 354 int fFirstX, fLastX, fPrevX; | 354 int fFirstX, fLastX, fPrevX; |
| 355 }; | 355 }; |
| 356 | 356 |
| 357 static void PrePostInverseBlitterProc(SkBlitter* blitter, int y, bool isStart) { | 357 static void PrePostInverseBlitterProc(SkBlitter* blitter, int y, bool isStart) { |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 clipRgn = &wrap.getRgn(); | 700 clipRgn = &wrap.getRgn(); |
| 701 blitter = wrap.getBlitter(); | 701 blitter = wrap.getBlitter(); |
| 702 } | 702 } |
| 703 | 703 |
| 704 SkScanClipper clipper(blitter, clipRgn, ir); | 704 SkScanClipper clipper(blitter, clipRgn, ir); |
| 705 blitter = clipper.getBlitter(); | 705 blitter = clipper.getBlitter(); |
| 706 if (blitter) { | 706 if (blitter) { |
| 707 sk_fill_triangle(pts, clipper.getClipRect(), blitter, ir); | 707 sk_fill_triangle(pts, clipper.getClipRect(), blitter, ir); |
| 708 } | 708 } |
| 709 } | 709 } |
| OLD | NEW |