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

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

Issue 1125193006: Revert of add option to supress prints on context (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 GrContextDebugf(fContext, "Missed an early reject. " 71 SkDebugf("Missed an early reject. Bailing on draw from setupDstReadI fNecessary.\n");
72 "Bailing on draw from setupDstReadIfNecess ary.\n");
73 #endif 72 #endif
74 return false; 73 return false;
75 } 74 }
76 } else { 75 } else {
77 #ifdef SK_DEBUG 76 #ifdef SK_DEBUG
78 //SkDebugf("No dev bounds when dst copy is made.\n"); 77 //SkDebugf("No dev bounds when dst copy is made.\n");
79 #endif 78 #endif
80 } 79 }
81 80
82 // MSAA consideration: When there is support for reading MSAA samples in the shader we could 81 // 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
778 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp, 777 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp,
779 GrPipelineBuilder::AutoRestoreStencil* ars, 778 GrPipelineBuilder::AutoRestoreStencil* ars,
780 GrScissorState* scissorState, 779 GrScissorState* scissorState,
781 const SkRect* devBounds) { 780 const SkRect* devBounds) {
782 return fClipMaskManager.setupClipping(pipelineBuilder, 781 return fClipMaskManager.setupClipping(pipelineBuilder,
783 arfp, 782 arfp,
784 ars, 783 ars,
785 scissorState, 784 scissorState,
786 devBounds); 785 devBounds);
787 } 786 }
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