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

Unified Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_implementation.h
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h
index e77b4e2d243f9cad67d8d324688194981c8af4a6..ed83329acb9c8a1eaeb555d279e86baa9f550af0 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -629,32 +629,6 @@ class GLES2_IMPL_EXPORT GLES2Implementation
// a token.
void RemoveTransferBuffer(BufferTracker::Buffer* buffer);
- // Returns true if the async upload token has passed.
- //
- // NOTE: This will detect wrapped async tokens by checking if the most
- // significant bit of async token to check is 1 but the last read is 0, i.e.
- // the uint32 wrapped.
- bool HasAsyncUploadTokenPassed(uint32 token) const {
- return async_upload_sync_->HasAsyncUploadTokenPassed(token);
- }
-
- // Get the next async upload token.
- uint32 NextAsyncUploadToken();
-
- // Ensure that the shared memory used for synchronizing async upload tokens
- // has been mapped.
- //
- // Returns false on error, true on success.
- bool EnsureAsyncUploadSync();
-
- // Checks the last read asynchronously upload token and frees any unmanaged
- // transfer buffer that has its async token passed.
- void PollAsyncUploads();
-
- // Free every async upload buffer. If some async upload buffer is still in use
- // wait for them to finish before freeing.
- void FreeAllAsyncUploadBuffers();
-
bool GetBoundPixelTransferBuffer(
GLenum target, const char* function_name, GLuint* buffer_id);
BufferTracker::Buffer* GetBoundPixelUnpackTransferBufferIfValid(
@@ -750,18 +724,6 @@ class GLES2_IMPL_EXPORT GLES2Implementation
GLuint bound_pixel_pack_transfer_buffer_id_;
GLuint bound_pixel_unpack_transfer_buffer_id_;
- // The current asynchronous pixel buffer upload token.
- uint32 async_upload_token_;
-
- // The shared memory used for synchronizing asynchronous upload tokens.
- AsyncUploadSync* async_upload_sync_;
- int32 async_upload_sync_shm_id_;
- unsigned int async_upload_sync_shm_offset_;
-
- // Unmanaged pixel transfer buffer memory pending asynchronous upload token.
- typedef std::list<std::pair<void*, uint32> > DetachedAsyncUploadMemoryList;
- DetachedAsyncUploadMemoryList detached_async_upload_memory_;
-
// Client side management for vertex array objects. Needed to correctly
// track client side arrays.
scoped_ptr<VertexArrayObjectManager> vertex_array_object_manager_;
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698