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

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

Issue 1142263002: small cleanup of GrAtlas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tidy 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/GrImmediateDrawTarget.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
40 void clearStencilClip(const SkIRect& rect, 37 void clearStencilClip(const SkIRect& rect,
41 bool insideClip, 38 bool insideClip,
42 GrRenderTarget* renderTarget) override; 39 GrRenderTarget* renderTarget) override;
43 40
44 void discard(GrRenderTarget*) override; 41 void discard(GrRenderTarget*) override;
45 42
46 protected: 43 protected:
47 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index Type, 44 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index Type,
48 const float* transformValues, PathTransformT ype transformType, 45 const float* transformValues, PathTransformT ype transformType,
49 int count, char** indicesLocation, float** x formsLocation) { 46 int count, char** indicesLocation, float** x formsLocation) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 SkChunkAlloc fPathIndexBuffer; 138 SkChunkAlloc fPathIndexBuffer;
142 SkChunkAlloc fPathTransformBuffer; 139 SkChunkAlloc fPathTransformBuffer;
143 SkChunkAlloc fPipelineBuffer; 140 SkChunkAlloc fPipelineBuffer;
144 uint32_t fDrawID; 141 uint32_t fDrawID;
145 SkAutoTUnref<State> fPrevState; 142 SkAutoTUnref<State> fPrevState;
146 143
147 typedef GrClipTarget INHERITED; 144 typedef GrClipTarget INHERITED;
148 }; 145 };
149 146
150 #endif 147 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrImmediateDrawTarget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698