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

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: Improved comments, use saturated cast 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
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0805e4bc64bba1c7db38b9e08470e1beb02173bd 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -746,6 +746,12 @@ class GLES2_IMPL_EXPORT GLES2Implementation
// Used to check for single threaded access.
int use_count_;
+ // Maximum amount of extra memory from the mapped memory pool to use when
+ // needing to transfer 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698