Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: src/gpu/GrDrawingManager.h

Issue 1441533003: Update testing frameworks/tests for MDB (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix ref counting bug Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrDrawingManager.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrDrawingManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698