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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrInOrderDrawBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpu.cpp
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index 2bda594b9a37a12f8ccbbcb1a66999ec8aa24441..682f8258470ca751997ba04f44f5793e47f3dcf1 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -318,10 +318,11 @@ void GrGpu::drawPath(const GrOptDrawState& ds,
void GrGpu::drawPaths(const GrOptDrawState& ds,
const GrPathRange* pathRange,
- const uint32_t indices[],
+ const void* indices,
+ GrDrawTarget::PathIndexType indexType,
+ const float transformValues[],
+ GrDrawTarget::PathTransformType transformType,
int count,
- const float transforms[],
- GrDrawTarget::PathTransformType transformsType,
const GrStencilSettings& stencilSettings) {
this->handleDirtyContext();
@@ -329,7 +330,7 @@ void GrGpu::drawPaths(const GrOptDrawState& ds,
return;
}
- pathRange->willDrawPaths(indices, count);
- this->pathRendering()->drawPaths(pathRange, indices, count, transforms, transformsType,
- stencilSettings);
+ pathRange->willDrawPaths(indices, indexType, count);
+ this->pathRendering()->drawPaths(pathRange, indices, indexType, transformValues,
+ transformType, count, stencilSettings);
}
« 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