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

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

Issue 197763008: Allow toString capability to be toggled independent of developer mode (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: remove gyp changes Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/effects/SkLayerDrawLooper.cpp ('k') | src/effects/SkLumaColorFilter.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
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 "SkLerpXfermode.h" 8 #include "SkLerpXfermode.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 dst[i] = resA; 97 dst[i] = resA;
98 } 98 }
99 } 99 }
100 } else { 100 } else {
101 for (int i = 0; i < count; ++i) { 101 for (int i = 0; i < count; ++i) {
102 dst[i] = SkAlphaBlend(SkGetPackedA32(src[i]), dst[i], scale); 102 dst[i] = SkAlphaBlend(SkGetPackedA32(src[i]), dst[i], scale);
103 } 103 }
104 } 104 }
105 } 105 }
106 106
107 #ifdef SK_DEVELOPER 107 #ifndef SK_IGNORE_TO_STRING
108 void SkLerpXfermode::toString(SkString* str) const { 108 void SkLerpXfermode::toString(SkString* str) const {
109 str->printf("SkLerpXfermode: scale: %g", fScale256 / 256.0); 109 str->printf("SkLerpXfermode: scale: %g", fScale256 / 256.0);
110 } 110 }
111 #endif 111 #endif
OLDNEW
« no previous file with comments | « src/effects/SkLayerDrawLooper.cpp ('k') | src/effects/SkLumaColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698