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

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

Issue 1897203002: Implement instanced rendering for simple shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@upload2_requireHWAA
Patch Set: comments 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/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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 GrContext* context() const { return fDrawTarget->fContext; } 166 GrContext* context() const { return fDrawTarget->fContext; }
167 GrResourceProvider* resourceProvider() const { return fDrawTarget->fReso urceProvider; } 167 GrResourceProvider* resourceProvider() const { return fDrawTarget->fReso urceProvider; }
168 GrDrawTarget* fDrawTarget; 168 GrDrawTarget* fDrawTarget;
169 friend class GrClipMaskManager; 169 friend class GrClipMaskManager;
170 }; 170 };
171 171
172 const CMMAccess cmmAccess() { return CMMAccess(this); } 172 const CMMAccess cmmAccess() { return CMMAccess(this); }
173 173
174 GrAuditTrail* getAuditTrail() const { return fAuditTrail; } 174 GrAuditTrail* getAuditTrail() const { return fAuditTrail; }
175 175
176 /**
177 * Gets the shape rendering object if it is supported on this platform.
178 */
179 GrInstancedRendering* instancedRendering() const { return fInstancedRenderin g; }
180
176 private: 181 private:
177 friend class GrDrawingManager; // for resetFlag & TopoSortTraits 182 friend class GrDrawingManager; // for resetFlag & TopoSortTraits
178 183
179 enum Flags { 184 enum Flags {
180 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat ches 185 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat ches
181 186
182 kWasOutput_Flag = 0x02, //!< Flag for topological sorting 187 kWasOutput_Flag = 0x02, //!< Flag for topological sorting
183 kTempMark_Flag = 0x04, //!< Flag for topological sorting 188 kTempMark_Flag = 0x04, //!< Flag for topological sorting
184 }; 189 };
185 190
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 uint32_t fFlags; 260 uint32_t fFlags;
256 261
257 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es' 262 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci es'
258 SkTDArray<GrDrawTarget*> fDependencies; 263 SkTDArray<GrDrawTarget*> fDependencies;
259 GrRenderTarget* fRenderTarget; 264 GrRenderTarget* fRenderTarget;
260 265
261 bool fDrawBatchBounds; 266 bool fDrawBatchBounds;
262 int fMaxBatchLookback; 267 int fMaxBatchLookback;
263 int fMaxBatchLookahead; 268 int fMaxBatchLookahead;
264 269
270 SkAutoTDelete<GrInstancedRendering> fInstancedRendering;
271
265 typedef SkRefCnt INHERITED; 272 typedef SkRefCnt INHERITED;
266 }; 273 };
267 274
268 #endif 275 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698