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

Side by Side Diff: src/core/SkBlitter.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/core/SkBitmapProcShader.cpp ('k') | src/core/SkComposeShader.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 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 "SkBlitter.h" 10 #include "SkBlitter.h"
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 SkFastMin32(SkAlphaMul(r, mul) + add, a), 658 SkFastMin32(SkAlphaMul(r, mul) + add, a),
659 SkFastMin32(SkAlphaMul(g, mul) + add, a), 659 SkFastMin32(SkAlphaMul(g, mul) + add, a),
660 SkFastMin32(SkAlphaMul(b, mul) + add, a)); 660 SkFastMin32(SkAlphaMul(b, mul) + add, a));
661 } else { 661 } else {
662 span[i] = 0; 662 span[i] = 0;
663 } 663 }
664 } 664 }
665 } 665 }
666 } 666 }
667 667
668 #ifdef SK_DEVELOPER 668 #ifndef SK_IGNORE_TO_STRING
669 virtual void toString(SkString* str) const SK_OVERRIDE { 669 virtual void toString(SkString* str) const SK_OVERRIDE {
670 str->append("Sk3DShader: ("); 670 str->append("Sk3DShader: (");
671 671
672 if (NULL != fProxy) { 672 if (NULL != fProxy) {
673 str->append("Proxy: "); 673 str->append("Proxy: ");
674 fProxy->toString(str); 674 fProxy->toString(str);
675 } 675 }
676 676
677 this->INHERITED::toString(str); 677 this->INHERITED::toString(str);
678 678
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 964
965 fShader->ref(); 965 fShader->ref();
966 fShaderFlags = fShader->getFlags(); 966 fShaderFlags = fShader->getFlags();
967 } 967 }
968 968
969 SkShaderBlitter::~SkShaderBlitter() { 969 SkShaderBlitter::~SkShaderBlitter() {
970 SkASSERT(fShader->setContextHasBeenCalled()); 970 SkASSERT(fShader->setContextHasBeenCalled());
971 fShader->endContext(); 971 fShader->endContext();
972 fShader->unref(); 972 fShader->unref();
973 } 973 }
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkComposeShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698