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

Side by Side Diff: src/gpu/GrInOrderDrawBuffer.cpp

Issue 695663003: Cleanup: Go with SkDebugf instead of GrPrintf. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/gpu/GrGpuFactory.cpp ('k') | src/gpu/GrOvalRenderer.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 2011 Google Inc. 2 * Copyright 2011 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 "GrInOrderDrawBuffer.h" 8 #include "GrInOrderDrawBuffer.h"
9 9
10 #include "GrBufferAllocPool.h" 10 #include "GrBufferAllocPool.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const SkRect* localRect, 119 const SkRect* localRect,
120 const SkMatrix* localMatrix) { 120 const SkMatrix* localMatrix) {
121 GrDrawState* drawState = this->drawState(); 121 GrDrawState* drawState = this->drawState();
122 122
123 GrColor color = drawState->getColor(); 123 GrColor color = drawState->getColor();
124 124
125 set_vertex_attributes(drawState, SkToBool(localRect), color); 125 set_vertex_attributes(drawState, SkToBool(localRect), color);
126 126
127 AutoReleaseGeometry geo(this, 4, 0); 127 AutoReleaseGeometry geo(this, 4, 0);
128 if (!geo.succeeded()) { 128 if (!geo.succeeded()) {
129 GrPrintf("Failed to get space for vertices!\n"); 129 SkDebugf("Failed to get space for vertices!\n");
130 return; 130 return;
131 } 131 }
132 132
133 // Go to device coords to allow batching across matrix changes 133 // Go to device coords to allow batching across matrix changes
134 SkMatrix matrix = drawState->getViewMatrix(); 134 SkMatrix matrix = drawState->getViewMatrix();
135 135
136 // When the caller has provided an explicit source rect for a stage then we don't want to 136 // When the caller has provided an explicit source rect for a stage then we don't want to
137 // modify that stage's matrix. Otherwise if the effect is generating its sou rce rect from 137 // modify that stage's matrix. Otherwise if the effect is generating its sou rce rect from
138 // the vertex positions then we have to account for the view matrix change. 138 // the vertex positions then we have to account for the view matrix change.
139 GrDrawState::AutoViewMatrixRestore avmr; 139 GrDrawState::AutoViewMatrixRestore avmr;
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 fCmdBuffer.back().fType = add_trace_bit(fCmdBuffer.back().fType); 858 fCmdBuffer.back().fType = add_trace_bit(fCmdBuffer.back().fType);
859 fGpuCmdMarkers.push_back(activeTraceMarkers); 859 fGpuCmdMarkers.push_back(activeTraceMarkers);
860 } 860 }
861 } 861 }
862 862
863 void GrInOrderDrawBuffer::clipWillBeSet(const GrClipData* newClipData) { 863 void GrInOrderDrawBuffer::clipWillBeSet(const GrClipData* newClipData) {
864 INHERITED::clipWillBeSet(newClipData); 864 INHERITED::clipWillBeSet(newClipData);
865 fClipSet = true; 865 fClipSet = true;
866 fClipProxyState = kUnknown_ClipProxyState; 866 fClipProxyState = kUnknown_ClipProxyState;
867 } 867 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpuFactory.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698