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

Unified Diff: src/gpu/GrInOrderDrawBuffer.h

Issue 364823004: Combine clip stack and clip origin into one struct in GrIODB. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrInOrderDrawBuffer.h
diff --git a/src/gpu/GrInOrderDrawBuffer.h b/src/gpu/GrInOrderDrawBuffer.h
index fd060143e5eccf8e3d9ef9a3d80d43c4a57d4555..b31a9957d1a262b11fb0a055dffe35fe7ffbc151 100644
--- a/src/gpu/GrInOrderDrawBuffer.h
+++ b/src/gpu/GrInOrderDrawBuffer.h
@@ -145,6 +145,11 @@ private:
SkIPoint fDstPoint;
};
+ struct Clip : public ::SkNoncopyable {
+ SkClipStack fStack;
+ SkIPoint fOrigin;
+ };
+
// overrides from GrDrawTarget
virtual void onDraw(const DrawInfo&) SK_OVERRIDE;
virtual void onDrawRect(const SkRect& rect,
@@ -230,8 +235,7 @@ private:
typedef GrTAllocator<GrDrawState::DeferredState> StateAllocator;
typedef GrTAllocator<Clear> ClearAllocator;
typedef GrTAllocator<CopySurface> CopySurfaceAllocator;
- typedef GrTAllocator<SkClipStack> ClipAllocator;
- typedef GrTAllocator<SkIPoint> ClipOriginAllocator;
+ typedef GrTAllocator<Clip> ClipAllocator;
GrSTAllocator<kDrawPreallocCnt, DrawRecord> fDraws;
GrSTAllocator<kStencilPathPreallocCnt, StencilPath> fStencilPaths;
@@ -240,8 +244,7 @@ private:
GrSTAllocator<kStatePreallocCnt, GrDrawState::DeferredState> fStates;
GrSTAllocator<kClearPreallocCnt, Clear> fClears;
GrSTAllocator<kCopySurfacePreallocCnt, CopySurface> fCopySurfaces;
- GrSTAllocator<kClipPreallocCnt, SkClipStack> fClips;
- GrSTAllocator<kClipPreallocCnt, SkIPoint> fClipOrigins;
+ GrSTAllocator<kClipPreallocCnt, Clip> fClips;
SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers;
« no previous file with comments | « no previous file | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698