| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #ifndef GrClipMaskManager_DEFINED | 7 #ifndef GrClipMaskManager_DEFINED |
| 8 #define GrClipMaskManager_DEFINED | 8 #define GrClipMaskManager_DEFINED |
| 9 | 9 |
| 10 #include "GrPipelineBuilder.h" | 10 #include "GrPipelineBuilder.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 * the manager when it must install additional effects to implement the | 64 * the manager when it must install additional effects to implement the |
| 65 * clip. devBounds is optional but can help optimize clipping. | 65 * clip. devBounds is optional but can help optimize clipping. |
| 66 */ | 66 */ |
| 67 bool setupClipping(const GrPipelineBuilder&, | 67 bool setupClipping(const GrPipelineBuilder&, |
| 68 GrPipelineBuilder::AutoRestoreStencil*, | 68 GrPipelineBuilder::AutoRestoreStencil*, |
| 69 const SkRect* devBounds, | 69 const SkRect* devBounds, |
| 70 GrAppliedClip*); | 70 GrAppliedClip*); |
| 71 | 71 |
| 72 bool setupScissorClip(const GrPipelineBuilder& pipelineBuilder, | 72 bool setupScissorClip(const GrPipelineBuilder& pipelineBuilder, |
| 73 GrPipelineBuilder::AutoRestoreStencil* ars, | 73 GrPipelineBuilder::AutoRestoreStencil* ars, |
| 74 const SkIRect& scissor, | 74 const SkIRect& scissor, |
| 75 const SkRect* devBounds, | 75 const SkRect* devBounds, |
| 76 GrAppliedClip* out); | 76 GrAppliedClip* out); |
| 77 | 77 |
| 78 void adjustPathStencilParams(const GrStencilAttachment*, GrStencilSettings*)
; | 78 void adjustPathStencilParams(const GrStencilAttachment*, GrStencilSettings*)
; |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 inline GrContext* getContext(); | 81 inline GrContext* getContext(); |
| 82 inline const GrCaps* caps() const; | 82 inline const GrCaps* caps() const; |
| 83 inline GrResourceProvider* resourceProvider(); | 83 inline GrResourceProvider* resourceProvider(); |
| 84 | 84 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 static const int kMaxAnalyticElements = 4; | 170 static const int kMaxAnalyticElements = 4; |
| 171 | 171 |
| 172 GrDrawTarget* fDrawTarget; // This is our owning draw target. | 172 GrDrawTarget* fDrawTarget; // This is our owning draw target. |
| 173 StencilClipMode fClipMode; | 173 StencilClipMode fClipMode; |
| 174 bool fDebugClipBatchToBounds; | 174 bool fDebugClipBatchToBounds; |
| 175 | 175 |
| 176 typedef SkNoncopyable INHERITED; | 176 typedef SkNoncopyable INHERITED; |
| 177 }; | 177 }; |
| 178 #endif // GrClipMaskManager_DEFINED | 178 #endif // GrClipMaskManager_DEFINED |
| OLD | NEW |