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

Unified Diff: src/gpu/GrBufferAllocPool.cpp

Issue 699733002: removing setVertexArraySource from drawtarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: a bit more cleanup 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/GrBufferAllocPool.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBufferAllocPool.cpp
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp
index 226f45196e4afdb002ac989c4940534ad9306317..9fafcb35ac439a04581460d357e76cfca0904919 100644
--- a/src/gpu/GrBufferAllocPool.cpp
+++ b/src/gpu/GrBufferAllocPool.cpp
@@ -419,22 +419,6 @@ void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize,
return ptr;
}
-bool GrVertexBufferAllocPool::appendVertices(size_t vertexSize,
- int vertexCount,
- const void* vertices,
- const GrVertexBuffer** buffer,
- int* startVertex) {
- void* space = makeSpace(vertexSize, vertexCount, buffer, startVertex);
- if (space) {
- memcpy(space,
- vertices,
- vertexSize * vertexCount);
- return true;
- } else {
- return false;
- }
-}
-
int GrVertexBufferAllocPool::preallocatedBufferVertices(size_t vertexSize) const {
return static_cast<int>(INHERITED::preallocatedBufferSize() / vertexSize);
}
@@ -477,19 +461,6 @@ void* GrIndexBufferAllocPool::makeSpace(int indexCount,
return ptr;
}
-bool GrIndexBufferAllocPool::appendIndices(int indexCount,
- const void* indices,
- const GrIndexBuffer** buffer,
- int* startIndex) {
- void* space = makeSpace(indexCount, buffer, startIndex);
- if (space) {
- memcpy(space, indices, sizeof(uint16_t) * indexCount);
- return true;
- } else {
- return false;
- }
-}
-
int GrIndexBufferAllocPool::preallocatedBufferIndices() const {
return static_cast<int>(INHERITED::preallocatedBufferSize() / sizeof(uint16_t));
}
« no previous file with comments | « src/gpu/GrBufferAllocPool.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698