| 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 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 Loading... |
| 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 } |
| OLD | NEW |