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

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

Issue 2182783004: Add test configs for instanced rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add test configs for instanced rendering Created 4 years, 4 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 * src bounds then pixel values in the dst rect corresponding to area clipp ed 132 * src bounds then pixel values in the dst rect corresponding to area clipp ed
133 * by the src rect are not overwritten. This method is not guaranteed to suc ceed 133 * by the src rect are not overwritten. This method is not guaranteed to suc ceed
134 * depending on the type of surface, configs, etc, and the backend-specific 134 * depending on the type of surface, configs, etc, and the backend-specific
135 * limitations. 135 * limitations.
136 */ 136 */
137 bool copySurface(GrSurface* dst, 137 bool copySurface(GrSurface* dst,
138 GrSurface* src, 138 GrSurface* src,
139 const SkIRect& srcRect, 139 const SkIRect& srcRect,
140 const SkIPoint& dstPoint); 140 const SkIPoint& dstPoint);
141 141
142 /** 142 gr_instanced::InstancedRendering* instancedRendering() const {
143 * Gets the shape rendering object if it is supported on this platform. 143 SkASSERT(fInstancedRendering);
144 */ 144 return fInstancedRendering;
145 gr_instanced::InstancedRendering* instancedRendering() const { return fInsta ncedRendering; } 145 }
146 146
147 private: 147 private:
148 friend class GrDrawingManager; // for resetFlag & TopoSortTraits 148 friend class GrDrawingManager; // for resetFlag & TopoSortTraits
149 friend class GrDrawContextPriv; // for clearStencilClip 149 friend class GrDrawContextPriv; // for clearStencilClip
150 150
151 enum Flags { 151 enum Flags {
152 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat ches 152 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat ches
153 153
154 kWasOutput_Flag = 0x02, //!< Flag for topological sorting 154 kWasOutput_Flag = 0x02, //!< Flag for topological sorting
155 kTempMark_Flag = 0x04, //!< Flag for topological sorting 155 kTempMark_Flag = 0x04, //!< Flag for topological sorting
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 bool fDrawBatchBounds; 231 bool fDrawBatchBounds;
232 int fMaxBatchLookback; 232 int fMaxBatchLookback;
233 int fMaxBatchLookahead; 233 int fMaxBatchLookahead;
234 234
235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; 235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering;
236 236
237 typedef SkRefCnt INHERITED; 237 typedef SkRefCnt INHERITED;
238 }; 238 };
239 239
240 #endif 240 #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