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

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

Issue 1498653002: Add option to control maximum GrBatch lookback (Closed) Base URL: https://skia.googlesource.com/skia.git@drect
Patch Set: fix rebase Created 5 years 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/GrContext.cpp ('k') | src/gpu/GrDrawTarget.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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 26 matching lines...) Expand all
37 class GrBatch; 37 class GrBatch;
38 class GrClip; 38 class GrClip;
39 class GrCaps; 39 class GrCaps;
40 class GrPath; 40 class GrPath;
41 class GrDrawPathBatchBase; 41 class GrDrawPathBatchBase;
42 42
43 class GrDrawTarget final : public SkRefCnt { 43 class GrDrawTarget final : public SkRefCnt {
44 public: 44 public:
45 /** Options for GrDrawTarget behavior. */ 45 /** Options for GrDrawTarget behavior. */
46 struct Options { 46 struct Options {
47 Options () : fClipBatchToBounds(false), fDrawBatchBounds(false) {} 47 Options () : fClipBatchToBounds(false), fDrawBatchBounds(false), fMaxBat chLookback(-1) {}
48 bool fClipBatchToBounds; 48 bool fClipBatchToBounds;
49 bool fDrawBatchBounds; 49 bool fDrawBatchBounds;
50 int fMaxBatchLookback;
50 }; 51 };
51 52
52 GrDrawTarget(GrRenderTarget*, GrGpu*, GrResourceProvider*, const Options&); 53 GrDrawTarget(GrRenderTarget*, GrGpu*, GrResourceProvider*, const Options&);
53 54
54 ~GrDrawTarget() override; 55 ~GrDrawTarget() override;
55 56
56 void makeClosed() { 57 void makeClosed() {
57 // We only close drawTargets When MDB is enabled. When MDB is disabled t here is only 58 // We only close drawTargets When MDB is enabled. When MDB is disabled t here is only
58 // ever one drawTarget and all calls will be funnelled into it. 59 // ever one drawTarget and all calls will be funnelled into it.
59 #ifdef ENABLE_MDB 60 #ifdef ENABLE_MDB
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 bool fFlushing; 291 bool fFlushing;
291 292
292 SkDEBUGCODE(int fDebugID;) 293 SkDEBUGCODE(int fDebugID;)
293 uint32_t fFlags; 294 uint32_t fFlags;
294 295
295 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es' 296 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es'
296 SkTDArray<GrDrawTarget*> fDependencies; 297 SkTDArray<GrDrawTarget*> fDependencies;
297 GrRenderTarget* fRenderTarget; 298 GrRenderTarget* fRenderTarget;
298 299
299 bool fDrawBatchBounds; 300 bool fDrawBatchBounds;
301 int fMaxBatchLookback;
300 302
301 typedef SkRefCnt INHERITED; 303 typedef SkRefCnt INHERITED;
302 }; 304 };
303 305
304 #endif 306 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698