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

Side by Side Diff: src/effects/SkLayerDrawLooper.cpp

Issue 19825002: stop using bitmap-filter flags outside of paint itself, as a step towards really changing them into… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/core/SkBitmapProcState_shaderproc.h ('k') | src/opts/SkBitmapProcState_opts_SSE2.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 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkColor.h" 9 #include "SkColor.h"
10 #include "SkFlattenableBuffers.h" 10 #include "SkFlattenableBuffers.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 for (int i = 0; i < fCount; i++) { 262 for (int i = 0; i < fCount; i++) {
263 str->appendf("%d: ", i); 263 str->appendf("%d: ", i);
264 264
265 str->append("flagsMask: ("); 265 str->append("flagsMask: (");
266 if (0 == rec->fInfo.fFlagsMask) { 266 if (0 == rec->fInfo.fFlagsMask) {
267 str->append("None"); 267 str->append("None");
268 } else { 268 } else {
269 bool needSeparator = false; 269 bool needSeparator = false;
270 SkAddFlagToString(str, SkToBool(SkPaint::kAntiAlias_Flag & rec->fInf o.fFlagsMask), 270 SkAddFlagToString(str, SkToBool(SkPaint::kAntiAlias_Flag & rec->fInf o.fFlagsMask),
271 "AntiAlias", &needSeparator); 271 "AntiAlias", &needSeparator);
272 SkAddFlagToString(str, SkToBool(SkPaint::kFilterBitmap_Flag & rec->f Info.fFlagsMask), 272 // SkAddFlagToString(str, SkToBool(SkPaint::kFilterBitmap_Flag & rec- >fInfo.fFlagsMask), "FilterBitmap", &needSeparator);
273 "FilterBitmap", &needSeparator);
274 SkAddFlagToString(str, SkToBool(SkPaint::kDither_Flag & rec->fInfo.f FlagsMask), 273 SkAddFlagToString(str, SkToBool(SkPaint::kDither_Flag & rec->fInfo.f FlagsMask),
275 "Dither", &needSeparator); 274 "Dither", &needSeparator);
276 SkAddFlagToString(str, SkToBool(SkPaint::kUnderlineText_Flag & rec-> fInfo.fFlagsMask), 275 SkAddFlagToString(str, SkToBool(SkPaint::kUnderlineText_Flag & rec-> fInfo.fFlagsMask),
277 "UnderlineText", &needSeparator); 276 "UnderlineText", &needSeparator);
278 SkAddFlagToString(str, SkToBool(SkPaint::kStrikeThruText_Flag & rec- >fInfo.fFlagsMask), 277 SkAddFlagToString(str, SkToBool(SkPaint::kStrikeThruText_Flag & rec- >fInfo.fFlagsMask),
279 "StrikeThruText", &needSeparator); 278 "StrikeThruText", &needSeparator);
280 SkAddFlagToString(str, SkToBool(SkPaint::kFakeBoldText_Flag & rec->f Info.fFlagsMask), 279 SkAddFlagToString(str, SkToBool(SkPaint::kFakeBoldText_Flag & rec->f Info.fFlagsMask),
281 "FakeBoldText", &needSeparator); 280 "FakeBoldText", &needSeparator);
282 SkAddFlagToString(str, SkToBool(SkPaint::kLinearText_Flag & rec->fIn fo.fFlagsMask), 281 SkAddFlagToString(str, SkToBool(SkPaint::kLinearText_Flag & rec->fIn fo.fFlagsMask),
283 "LinearText", &needSeparator); 282 "LinearText", &needSeparator);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 str->append("true "); 341 str->append("true ");
343 } else { 342 } else {
344 str->append("false "); 343 str->append("false ");
345 } 344 }
346 345
347 rec->fPaint.toString(str); 346 rec->fPaint.toString(str);
348 rec = rec->fNext; 347 rec = rec->fNext;
349 } 348 }
350 } 349 }
351 #endif 350 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcState_shaderproc.h ('k') | src/opts/SkBitmapProcState_opts_SSE2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698