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

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

Issue 1128903008: add option to supress prints on context (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 years, 7 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
« no previous file with comments | « include/gpu/GrTypesPriv.h ('k') | src/gpu/gl/GrGLProgramDataManager.h » ('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 2010 Google Inc. 3 * Copyright 2010 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 #include "GrDrawTarget.h" 9 #include "GrDrawTarget.h"
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 SkIRect copyRect; 63 SkIRect copyRect;
64 pipelineBuilder.clip().getConservativeBounds(rt, &copyRect); 64 pipelineBuilder.clip().getConservativeBounds(rt, &copyRect);
65 65
66 if (drawBounds) { 66 if (drawBounds) {
67 SkIRect drawIBounds; 67 SkIRect drawIBounds;
68 drawBounds->roundOut(&drawIBounds); 68 drawBounds->roundOut(&drawIBounds);
69 if (!copyRect.intersect(drawIBounds)) { 69 if (!copyRect.intersect(drawIBounds)) {
70 #ifdef SK_DEBUG 70 #ifdef SK_DEBUG
71 SkDebugf("Missed an early reject. Bailing on draw from setupDstReadI fNecessary.\n"); 71 GrContextDebugf(fContext, "Missed an early reject. "
72 "Bailing on draw from setupDstReadIfNecess ary.\n");
72 #endif 73 #endif
73 return false; 74 return false;
74 } 75 }
75 } else { 76 } else {
76 #ifdef SK_DEBUG 77 #ifdef SK_DEBUG
77 //SkDebugf("No dev bounds when dst copy is made.\n"); 78 //SkDebugf("No dev bounds when dst copy is made.\n");
78 #endif 79 #endif
79 } 80 }
80 81
81 // MSAA consideration: When there is support for reading MSAA samples in the shader we could 82 // MSAA consideration: When there is support for reading MSAA samples in the shader we could
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp, 778 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp,
778 GrPipelineBuilder::AutoRestoreStencil* ars, 779 GrPipelineBuilder::AutoRestoreStencil* ars,
779 GrScissorState* scissorState, 780 GrScissorState* scissorState,
780 const SkRect* devBounds) { 781 const SkRect* devBounds) {
781 return fClipMaskManager.setupClipping(pipelineBuilder, 782 return fClipMaskManager.setupClipping(pipelineBuilder,
782 arfp, 783 arfp,
783 ars, 784 ars,
784 scissorState, 785 scissorState,
785 devBounds); 786 devBounds);
786 } 787 }
OLDNEW
« no previous file with comments | « include/gpu/GrTypesPriv.h ('k') | src/gpu/gl/GrGLProgramDataManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698