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

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

Issue 1301823002: Put drawPath in GrBatch. (Closed) Base URL: https://skia.googlesource.com/skia.git@nvprbatch
Patch Set: update Created 5 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 | « gyp/gpu.gypi ('k') | src/gpu/GrBufferedDrawTarget.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 GrBufferedDrawTarget_DEFINED 8 #ifndef GrBufferedDrawTarget_DEFINED
9 #define GrBufferedDrawTarget_DEFINED 9 #define GrBufferedDrawTarget_DEFINED
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 void unallocState(StateForPathDraw* state) { 68 void unallocState(StateForPathDraw* state) {
69 state->unref(); 69 state->unref();
70 fPipelineBuffer.unalloc(state); 70 fPipelineBuffer.unalloc(state);
71 } 71 }
72 72
73 void onReset() override; 73 void onReset() override;
74 void onFlush() override; 74 void onFlush() override;
75 75
76 void onDrawPath(const GrPathProcessor*,
77 const GrPath*,
78 const GrStencilSettings&,
79 const PipelineInfo&) override;
80 void onDrawPaths(const GrPathProcessor*, 76 void onDrawPaths(const GrPathProcessor*,
81 const GrPathRange*, 77 const GrPathRange*,
82 const void* indices, 78 const void* indices,
83 PathIndexType, 79 PathIndexType,
84 const float transformValues[], 80 const float transformValues[],
85 PathTransformType, 81 PathTransformType,
86 int count, 82 int count,
87 const GrStencilSettings&, 83 const GrStencilSettings&,
88 const PipelineInfo&) override; 84 const PipelineInfo&) override;
89 85
(...skipping 19 matching lines...) Expand all
109 SkChunkAlloc fPathIndexBuffer; 105 SkChunkAlloc fPathIndexBuffer;
110 SkChunkAlloc fPathTransformBuffer; 106 SkChunkAlloc fPathTransformBuffer;
111 SkChunkAlloc fPipelineBuffer; 107 SkChunkAlloc fPipelineBuffer;
112 uint32_t fDrawID; 108 uint32_t fDrawID;
113 SkAutoTUnref<StateForPathDraw> fPrevState; 109 SkAutoTUnref<StateForPathDraw> fPrevState;
114 110
115 typedef GrClipTarget INHERITED; 111 typedef GrClipTarget INHERITED;
116 }; 112 };
117 113
118 #endif 114 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrBufferedDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698