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

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

Issue 1979913002: Rename GrDrawingMgr::abandon to wasAbandoned & add a matching entry point to GrDrawingContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 months 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/GrDrawContext.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 10 matching lines...) Expand all
21 21
22 // The GrDrawingManager allocates a new GrDrawContext for each GrRenderTarget 22 // The GrDrawingManager allocates a new GrDrawContext for each GrRenderTarget
23 // but all of them still land in the same GrDrawTarget! 23 // but all of them still land in the same GrDrawTarget!
24 // 24 //
25 // In the future this class will allocate a new GrDrawContext for 25 // In the future this class will allocate a new GrDrawContext for
26 // each GrRenderTarget/GrDrawTarget and manage the DAG. 26 // each GrRenderTarget/GrDrawTarget and manage the DAG.
27 class GrDrawingManager { 27 class GrDrawingManager {
28 public: 28 public:
29 ~GrDrawingManager(); 29 ~GrDrawingManager();
30 30
31 bool abandoned() const { return fAbandoned; } 31 bool wasAbandoned() const { return fAbandoned; }
32 void freeGpuResources(); 32 void freeGpuResources();
33 33
34 sk_sp<GrDrawContext> drawContext(sk_sp<GrRenderTarget> rt, const SkSurfacePr ops*); 34 sk_sp<GrDrawContext> drawContext(sk_sp<GrRenderTarget> rt, const SkSurfacePr ops*);
35 35
36 // The caller automatically gets a ref on the returned drawTarget. It must 36 // The caller automatically gets a ref on the returned drawTarget. It must
37 // be balanced by an unref call. 37 // be balanced by an unref call.
38 GrDrawTarget* newDrawTarget(GrRenderTarget* rt); 38 GrDrawTarget* newDrawTarget(GrRenderTarget* rt);
39 39
40 GrContext* getContext() { return fContext; } 40 GrContext* getContext() { return fContext; }
41 41
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 SkTDArray<GrDrawTarget*> fDrawTargets; 79 SkTDArray<GrDrawTarget*> fDrawTargets;
80 80
81 GrPathRendererChain* fPathRendererChain; 81 GrPathRendererChain* fPathRendererChain;
82 GrSoftwarePathRenderer* fSoftwarePathRenderer; 82 GrSoftwarePathRenderer* fSoftwarePathRenderer;
83 83
84 GrBatchFlushState fFlushState; 84 GrBatchFlushState fFlushState;
85 bool fFlushing; 85 bool fFlushing;
86 }; 86 };
87 87
88 #endif 88 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawingManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698