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

Side by Side Diff: src/pipe/SkGPipeWrite.cpp

Issue 1014533004: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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/pipe/SkGPipeRead.cpp ('k') | src/ports/SkFontHost_FreeType_common.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 #include "SkAnnotation.h" 9 #include "SkAnnotation.h"
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 1129
1130 if (base.getFlags() != paint.getFlags()) { 1130 if (base.getFlags() != paint.getFlags()) {
1131 *ptr++ = PaintOp_packOpData(kFlags_PaintOp, paint.getFlags()); 1131 *ptr++ = PaintOp_packOpData(kFlags_PaintOp, paint.getFlags());
1132 base.setFlags(paint.getFlags()); 1132 base.setFlags(paint.getFlags());
1133 } 1133 }
1134 if (base.getColor() != paint.getColor()) { 1134 if (base.getColor() != paint.getColor()) {
1135 *ptr++ = PaintOp_packOp(kColor_PaintOp); 1135 *ptr++ = PaintOp_packOp(kColor_PaintOp);
1136 *ptr++ = paint.getColor(); 1136 *ptr++ = paint.getColor();
1137 base.setColor(paint.getColor()); 1137 base.setColor(paint.getColor());
1138 } 1138 }
1139 if (base.getFilterLevel() != paint.getFilterLevel()) { 1139 if (base.getFilterQuality() != paint.getFilterQuality()) {
1140 *ptr++ = PaintOp_packOpData(kFilterLevel_PaintOp, paint.getFilterLevel() ); 1140 *ptr++ = PaintOp_packOpData(kFilterLevel_PaintOp, paint.getFilterQuality ());
1141 base.setFilterLevel(paint.getFilterLevel()); 1141 base.setFilterQuality(paint.getFilterQuality());
1142 } 1142 }
1143 if (base.getStyle() != paint.getStyle()) { 1143 if (base.getStyle() != paint.getStyle()) {
1144 *ptr++ = PaintOp_packOpData(kStyle_PaintOp, paint.getStyle()); 1144 *ptr++ = PaintOp_packOpData(kStyle_PaintOp, paint.getStyle());
1145 base.setStyle(paint.getStyle()); 1145 base.setStyle(paint.getStyle());
1146 } 1146 }
1147 if (base.getStrokeJoin() != paint.getStrokeJoin()) { 1147 if (base.getStrokeJoin() != paint.getStrokeJoin()) {
1148 *ptr++ = PaintOp_packOpData(kJoin_PaintOp, paint.getStrokeJoin()); 1148 *ptr++ = PaintOp_packOpData(kJoin_PaintOp, paint.getStrokeJoin());
1149 base.setStrokeJoin(paint.getStrokeJoin()); 1149 base.setStrokeJoin(paint.getStrokeJoin());
1150 } 1150 }
1151 if (base.getStrokeCap() != paint.getStrokeCap()) { 1151 if (base.getStrokeCap() != paint.getStrokeCap()) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 return fCanvas->shuttleBitmap(bitmap, slot); 1330 return fCanvas->shuttleBitmap(bitmap, slot);
1331 } 1331 }
1332 1332
1333 void BitmapShuttle::removeCanvas() { 1333 void BitmapShuttle::removeCanvas() {
1334 if (NULL == fCanvas) { 1334 if (NULL == fCanvas) {
1335 return; 1335 return;
1336 } 1336 }
1337 fCanvas->unref(); 1337 fCanvas->unref();
1338 fCanvas = NULL; 1338 fCanvas = NULL;
1339 } 1339 }
OLDNEW
« no previous file with comments | « src/pipe/SkGPipeRead.cpp ('k') | src/ports/SkFontHost_FreeType_common.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698