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

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

Issue 692583002: WIP: GPU-accelerated trapezoidal path renderer. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrTrapezoidalPathRenderer -> GrAAConcavePathRenderer; swap MSAA support for a coverage ramp. Created 5 years, 3 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/SkScan.h ('k') | src/core/SkScanPriv.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 9
10 #include "SkScan.h" 10 #include "SkScan.h"
11 #include "SkBlitter.h" 11 #include "SkBlitter.h"
12 #include "SkRasterClip.h" 12 #include "SkRasterClip.h"
13 13
14 bool SkScan::gWireframe = false;
15
14 static inline void blitrect(SkBlitter* blitter, const SkIRect& r) { 16 static inline void blitrect(SkBlitter* blitter, const SkIRect& r) {
15 blitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); 17 blitter->blitRect(r.fLeft, r.fTop, r.width(), r.height());
16 } 18 }
17 19
18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, 20 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip,
19 SkBlitter* blitter) { 21 SkBlitter* blitter) {
20 if (!r.isEmpty()) { 22 if (!r.isEmpty()) {
21 if (clip) { 23 if (clip) {
22 if (clip->isRect()) { 24 if (clip->isRect()) {
23 const SkIRect& clipBounds = clip->getBounds(); 25 const SkIRect& clipBounds = clip->getBounds();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 102 }
101 103
102 if (clip.isBW()) { 104 if (clip.isBW()) {
103 FillRect(r, &clip.bwRgn(), blitter); 105 FillRect(r, &clip.bwRgn(), blitter);
104 return; 106 return;
105 } 107 }
106 108
107 SkAAClipBlitterWrapper wrapper(clip, blitter); 109 SkAAClipBlitterWrapper wrapper(clip, blitter);
108 FillRect(r, &wrapper.getRgn(), wrapper.getBlitter()); 110 FillRect(r, &wrapper.getRgn(), wrapper.getBlitter());
109 } 111 }
OLDNEW
« no previous file with comments | « src/core/SkScan.h ('k') | src/core/SkScanPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698