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

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

Issue 1142273002: Revert of small cleanup of GrAtlas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/GrDrawTarget.h ('k') | no next file » | 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 2011 Google Inc. 2 * Copyright 2011 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 GrInOrderDrawBuffer_DEFINED 8 #ifndef GrInOrderDrawBuffer_DEFINED
9 #define GrInOrderDrawBuffer_DEFINED 9 #define GrInOrderDrawBuffer_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 /** 28 /**
29 * Creates a GrInOrderDrawBuffer 29 * Creates a GrInOrderDrawBuffer
30 * 30 *
31 * @param context the context object that owns this draw buffer. 31 * @param context the context object that owns this draw buffer.
32 */ 32 */
33 GrInOrderDrawBuffer(GrContext* context); 33 GrInOrderDrawBuffer(GrContext* context);
34 34
35 ~GrInOrderDrawBuffer() override; 35 ~GrInOrderDrawBuffer() override;
36 36
37 // tracking for draws
38 DrawToken getCurrentDrawToken() override { return DrawToken(this, fDrawID); }
39
37 void clearStencilClip(const SkIRect& rect, 40 void clearStencilClip(const SkIRect& rect,
38 bool insideClip, 41 bool insideClip,
39 GrRenderTarget* renderTarget) override; 42 GrRenderTarget* renderTarget) override;
40 43
41 void discard(GrRenderTarget*) override; 44 void discard(GrRenderTarget*) override;
42 45
43 protected: 46 protected:
44 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index Type, 47 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index Type,
45 const float* transformValues, PathTransformT ype transformType, 48 const float* transformValues, PathTransformT ype transformType,
46 int count, char** indicesLocation, float** x formsLocation) { 49 int count, char** indicesLocation, float** x formsLocation) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 SkChunkAlloc fPathIndexBuffer; 143 SkChunkAlloc fPathIndexBuffer;
141 SkChunkAlloc fPathTransformBuffer; 144 SkChunkAlloc fPathTransformBuffer;
142 SkChunkAlloc fPipelineBuffer; 145 SkChunkAlloc fPipelineBuffer;
143 uint32_t fDrawID; 146 uint32_t fDrawID;
144 SkAutoTUnref<State> fPrevState; 147 SkAutoTUnref<State> fPrevState;
145 148
146 typedef GrClipTarget INHERITED; 149 typedef GrClipTarget INHERITED;
147 }; 150 };
148 151
149 #endif 152 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698