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

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

Issue 1408843002: Fixed tough texture upload benchmark on low end devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: max extra transfer buffer variable is now a const member Created 5 years, 2 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 7f036db908c6327eef9dc5b364a6a28353e5f7df..dca1483eebb059b7896eeaa83c7ec3e7e515f103 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -746,6 +746,11 @@ class GLES2_IMPL_EXPORT GLES2Implementation
// Used to check for single threaded access.
int use_count_;
+ // Maximum amount of extra shared memory to use when needing to transfer
no sievers 2015/10/19 15:55:04 nit: maybe say 'extra memory from the mapped memor
David Yen 2015/10/19 16:02:18 Done.
+ // something exceeding the default transfer buffer. This should be 0 for
+ // low memory devices since they are already memory constrained.
+ const uint32_t max_extra_transfer_buffer_size_;
+
// Map of GLenum to Strings for glGetString. We need to cache these because
// the pointer passed back to the client has to remain valid for eternity.
typedef std::map<uint32, std::set<std::string> > GLStringMap;
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | gpu/command_buffer/client/gles2_implementation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698