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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "SkStrokeRec.h" | 26 #include "SkStrokeRec.h" |
27 | 27 |
28 //////////////////////////////////////////////////////////////////////////////// | 28 //////////////////////////////////////////////////////////////////////////////// |
29 | 29 |
30 #define DEBUG_INVAL_BUFFER 0xdeadcafe | 30 #define DEBUG_INVAL_BUFFER 0xdeadcafe |
31 #define DEBUG_INVAL_START_IDX -1 | 31 #define DEBUG_INVAL_START_IDX -1 |
32 | 32 |
33 GrDrawTarget::GrDrawTarget(GrContext* context) | 33 GrDrawTarget::GrDrawTarget(GrContext* context) |
34 : fContext(context) | 34 : fContext(context) |
35 , fCaps(SkRef(context->getGpu()->caps())) | 35 , fCaps(SkRef(context->caps())) |
36 , fGpuTraceMarkerCount(0) | 36 , fGpuTraceMarkerCount(0) |
37 , fFlushing(false) { | 37 , fFlushing(false) { |
38 SkASSERT(context); | 38 SkASSERT(context); |
39 } | 39 } |
40 | 40 |
41 //////////////////////////////////////////////////////////////////////////////// | 41 //////////////////////////////////////////////////////////////////////////////// |
42 | 42 |
43 bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil
der, | 43 bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil
der, |
44 const GrProcOptInfo& colorPOI, | 44 const GrProcOptInfo& colorPOI, |
45 const GrProcOptInfo& coveragePOI, | 45 const GrProcOptInfo& coveragePOI, |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 GrPipelineBuilder::AutoRestoreFragmentProcessors* a
rfp, | 545 GrPipelineBuilder::AutoRestoreFragmentProcessors* a
rfp, |
546 GrPipelineBuilder::AutoRestoreStencil* ars, | 546 GrPipelineBuilder::AutoRestoreStencil* ars, |
547 GrScissorState* scissorState, | 547 GrScissorState* scissorState, |
548 const SkRect* devBounds) { | 548 const SkRect* devBounds) { |
549 return fClipMaskManager.setupClipping(pipelineBuilder, | 549 return fClipMaskManager.setupClipping(pipelineBuilder, |
550 arfp, | 550 arfp, |
551 ars, | 551 ars, |
552 scissorState, | 552 scissorState, |
553 devBounds); | 553 devBounds); |
554 } | 554 } |
OLD | NEW |