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

Side by Side Diff: src/effects/SkPixelXorXfermode.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/SkPerlinNoiseShader.cpp ('k') | src/effects/SkStippleMaskFilter.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 9
10 #include "SkPixelXorXfermode.h" 10 #include "SkPixelXorXfermode.h"
(...skipping 13 matching lines...) Expand all
24 void SkPixelXorXfermode::flatten(SkWriteBuffer& wb) const { 24 void SkPixelXorXfermode::flatten(SkWriteBuffer& wb) const {
25 this->INHERITED::flatten(wb); 25 this->INHERITED::flatten(wb);
26 wb.writeColor(fOpColor); 26 wb.writeColor(fOpColor);
27 } 27 }
28 28
29 SkPixelXorXfermode::SkPixelXorXfermode(SkReadBuffer& rb) 29 SkPixelXorXfermode::SkPixelXorXfermode(SkReadBuffer& rb)
30 : INHERITED(rb) { 30 : INHERITED(rb) {
31 fOpColor = rb.readColor(); 31 fOpColor = rb.readColor();
32 } 32 }
33 33
34 #ifdef SK_DEVELOPER 34 #ifndef SK_IGNORE_TO_STRING
35 void SkPixelXorXfermode::toString(SkString* str) const { 35 void SkPixelXorXfermode::toString(SkString* str) const {
36 str->append("SkPixelXorXfermode: "); 36 str->append("SkPixelXorXfermode: ");
37 str->appendHex(fOpColor); 37 str->appendHex(fOpColor);
38 } 38 }
39 #endif 39 #endif
OLDNEW
« no previous file with comments | « src/effects/SkPerlinNoiseShader.cpp ('k') | src/effects/SkStippleMaskFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698