OLD | NEW |
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 Loading... |
61 } | 61 } |
62 | 62 |
63 SkIRect copyRect; | 63 SkIRect copyRect; |
64 pipelineBuilder.clip().getConservativeBounds(rt, ©Rect); | 64 pipelineBuilder.clip().getConservativeBounds(rt, ©Rect); |
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 Loading... |
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 } |
OLD | NEW |