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

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

Issue 746253003: Add IndexType parameter to GrDrawTarget::drawPaths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 if (!this->flushGraphicsState(ds, kDrawPath_DrawType)) { 312 if (!this->flushGraphicsState(ds, kDrawPath_DrawType)) {
313 return; 313 return;
314 } 314 }
315 315
316 this->pathRendering()->drawPath(path, stencilSettings); 316 this->pathRendering()->drawPath(path, stencilSettings);
317 } 317 }
318 318
319 void GrGpu::drawPaths(const GrOptDrawState& ds, 319 void GrGpu::drawPaths(const GrOptDrawState& ds,
320 const GrPathRange* pathRange, 320 const GrPathRange* pathRange,
321 const uint32_t indices[], 321 const void* indices,
322 GrDrawTarget::PathIndexType indexType,
323 const float transformValues[],
324 GrDrawTarget::PathTransformType transformType,
322 int count, 325 int count,
323 const float transforms[],
324 GrDrawTarget::PathTransformType transformsType,
325 const GrStencilSettings& stencilSettings) { 326 const GrStencilSettings& stencilSettings) {
326 this->handleDirtyContext(); 327 this->handleDirtyContext();
327 328
328 if (!this->flushGraphicsState(ds, kDrawPaths_DrawType)) { 329 if (!this->flushGraphicsState(ds, kDrawPaths_DrawType)) {
329 return; 330 return;
330 } 331 }
331 332
332 pathRange->willDrawPaths(indices, count); 333 pathRange->willDrawPaths(indices, indexType, count);
333 this->pathRendering()->drawPaths(pathRange, indices, count, transforms, tran sformsType, 334 this->pathRendering()->drawPaths(pathRange, indices, indexType, transformVal ues,
334 stencilSettings); 335 transformType, count, stencilSettings);
335 } 336 }
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