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

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

Issue 930953003: Minor refactoring (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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/GrFlushToGpuDrawTarget.h ('k') | src/gpu/GrInOrderDrawBuffer.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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // tracking for draws 47 // tracking for draws
48 DrawToken getCurrentDrawToken() SK_OVERRIDE { return DrawToken(this, fDrawID ); } 48 DrawToken getCurrentDrawToken() SK_OVERRIDE { return DrawToken(this, fDrawID ); }
49 49
50 void clearStencilClip(const SkIRect& rect, 50 void clearStencilClip(const SkIRect& rect,
51 bool insideClip, 51 bool insideClip,
52 GrRenderTarget* renderTarget) SK_OVERRIDE; 52 GrRenderTarget* renderTarget) SK_OVERRIDE;
53 53
54 void discard(GrRenderTarget*) SK_OVERRIDE; 54 void discard(GrRenderTarget*) SK_OVERRIDE;
55 55
56 protected:
56 void willReserveVertexAndIndexSpace(int vertexCount, 57 void willReserveVertexAndIndexSpace(int vertexCount,
57 size_t vertexStride, 58 size_t vertexStride,
58 int indexCount); 59 int indexCount);
59 60
60 private: 61 private:
61 typedef GrGpu::DrawArgs DrawArgs; 62 typedef GrGpu::DrawArgs DrawArgs;
62 enum { 63 enum {
63 kDraw_Cmd = 1, 64 kDraw_Cmd = 1,
64 kStencilPath_Cmd = 2, 65 kStencilPath_Cmd = 2,
65 kSetState_Cmd = 3, 66 kSetState_Cmd = 3,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 fDrawBatch->execute(this, fPrevState); 313 fDrawBatch->execute(this, fPrevState);
313 fDrawBatch->fBatch->setNumberOfDraws(fBatchTarget.numberOfDraws()); 314 fDrawBatch->fBatch->setNumberOfDraws(fBatchTarget.numberOfDraws());
314 fDrawBatch = NULL; 315 fDrawBatch = NULL;
315 } 316 }
316 } 317 }
317 318
318 typedef GrFlushToGpuDrawTarget INHERITED; 319 typedef GrFlushToGpuDrawTarget INHERITED;
319 }; 320 };
320 321
321 #endif 322 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrFlushToGpuDrawTarget.h ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698