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

Side by Side Diff: src/gpu/GrGpu.cpp

Issue 815643005: Move program descriptor and primitive processor off of optstate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: bug fix Created 5 years, 11 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/GrGpu.h ('k') | src/gpu/GrInOrderDrawBuffer.h » ('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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "GrGpu.h" 10 #include "GrGpu.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 6, 269 6,
270 MAX_QUADS, 270 MAX_QUADS,
271 4); 271 4);
272 } 272 }
273 273
274 return fQuadIndexBuffer; 274 return fQuadIndexBuffer;
275 } 275 }
276 276
277 //////////////////////////////////////////////////////////////////////////////// 277 ////////////////////////////////////////////////////////////////////////////////
278 278
279 void GrGpu::draw(const GrOptDrawState& ds, const GrDrawTarget::DrawInfo& info) { 279 void GrGpu::draw(const DrawArgs& args, const GrDrawTarget::DrawInfo& info) {
280 this->handleDirtyContext(); 280 this->handleDirtyContext();
281 this->onDraw(ds, info); 281 this->onDraw(args, info);
282 } 282 }
283 283
284 void GrGpu::stencilPath(const GrPath* path, const StencilPathState& state) { 284 void GrGpu::stencilPath(const GrPath* path, const StencilPathState& state) {
285 this->handleDirtyContext(); 285 this->handleDirtyContext();
286 this->onStencilPath(path, state); 286 this->onStencilPath(path, state);
287 } 287 }
288 288
289 void GrGpu::drawPath(const GrOptDrawState& ds, 289 void GrGpu::drawPath(const DrawArgs& args,
290 const GrPath* path, 290 const GrPath* path,
291 const GrStencilSettings& stencilSettings) { 291 const GrStencilSettings& stencilSettings) {
292 this->handleDirtyContext(); 292 this->handleDirtyContext();
293 this->onDrawPath(ds, path, stencilSettings); 293 this->onDrawPath(args, path, stencilSettings);
294 } 294 }
295 295
296 void GrGpu::drawPaths(const GrOptDrawState& ds, 296 void GrGpu::drawPaths(const DrawArgs& args,
297 const GrPathRange* pathRange, 297 const GrPathRange* pathRange,
298 const void* indices, 298 const void* indices,
299 GrDrawTarget::PathIndexType indexType, 299 GrDrawTarget::PathIndexType indexType,
300 const float transformValues[], 300 const float transformValues[],
301 GrDrawTarget::PathTransformType transformType, 301 GrDrawTarget::PathTransformType transformType,
302 int count, 302 int count,
303 const GrStencilSettings& stencilSettings) { 303 const GrStencilSettings& stencilSettings) {
304 this->handleDirtyContext(); 304 this->handleDirtyContext();
305 pathRange->willDrawPaths(indices, indexType, count); 305 pathRange->willDrawPaths(indices, indexType, count);
306 this->onDrawPaths(ds, pathRange, indices, indexType, transformValues, 306 this->onDrawPaths(args, pathRange, indices, indexType, transformValues,
307 transformType, count, stencilSettings); 307 transformType, count, stencilSettings);
308 } 308 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrInOrderDrawBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698