| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 | 7 |
| 8 #ifndef GrDrawingManager_DEFINED | 8 #ifndef GrDrawingManager_DEFINED |
| 9 #define GrDrawingManager_DEFINED | 9 #define GrDrawingManager_DEFINED |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // be balanced by an unref call. | 43 // be balanced by an unref call. |
| 44 GrDrawTarget* newDrawTarget(GrRenderTarget* rt); | 44 GrDrawTarget* newDrawTarget(GrRenderTarget* rt); |
| 45 | 45 |
| 46 GrContext* getContext() { return fContext; } | 46 GrContext* getContext() { return fContext; } |
| 47 | 47 |
| 48 GrPathRenderer* getPathRenderer(const GrPathRenderer::CanDrawPathArgs& args, | 48 GrPathRenderer* getPathRenderer(const GrPathRenderer::CanDrawPathArgs& args, |
| 49 bool allowSW, | 49 bool allowSW, |
| 50 GrPathRendererChain::DrawType drawType, | 50 GrPathRendererChain::DrawType drawType, |
| 51 GrPathRenderer::StencilSupport* stencilSuppo
rt = NULL); | 51 GrPathRenderer::StencilSupport* stencilSuppo
rt = NULL); |
| 52 | 52 |
| 53 static bool ProgramUnitTest(GrContext* context, GrDrawTarget* drawTarget, in
t maxStages); | 53 static bool ProgramUnitTest(GrContext* context, int maxStages); |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 GrDrawingManager(GrContext* context) | 56 GrDrawingManager(GrContext* context) |
| 57 : fContext(context) | 57 : fContext(context) |
| 58 , fAbandoned(false) | 58 , fAbandoned(false) |
| 59 , fNVPRTextContext(nullptr) | 59 , fNVPRTextContext(nullptr) |
| 60 , fPathRendererChain(nullptr) | 60 , fPathRendererChain(nullptr) |
| 61 , fSoftwarePathRenderer(nullptr) | 61 , fSoftwarePathRenderer(nullptr) |
| 62 , fFlushState(context->getGpu(), context->resourceProvider()) { | 62 , fFlushState(context->getGpu(), context->resourceProvider()) { |
| 63 sk_bzero(fTextContexts, sizeof(fTextContexts)); | 63 sk_bzero(fTextContexts, sizeof(fTextContexts)); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 81 GrTextContext* fNVPRTextContext; | 81 GrTextContext* fNVPRTextContext; |
| 82 GrTextContext* fTextContexts[kNumPixelGeometries][kNumDFTOption
s]; | 82 GrTextContext* fTextContexts[kNumPixelGeometries][kNumDFTOption
s]; |
| 83 | 83 |
| 84 GrPathRendererChain* fPathRendererChain; | 84 GrPathRendererChain* fPathRendererChain; |
| 85 GrSoftwarePathRenderer* fSoftwarePathRenderer; | 85 GrSoftwarePathRenderer* fSoftwarePathRenderer; |
| 86 | 86 |
| 87 GrBatchFlushState fFlushState; | 87 GrBatchFlushState fFlushState; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 #endif | 90 #endif |
| OLD | NEW |