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

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

Issue 2177513002: gpu: Avoid integer overflow when setting up client side buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/vertex_array_object_manager.h
diff --git a/gpu/command_buffer/client/vertex_array_object_manager.h b/gpu/command_buffer/client/vertex_array_object_manager.h
index 42ec269ea51224f88cef0537c36791ca73e0c457..9efac4c3c14d5c9df96785ebdeec4f6fa0b5ee3f 100644
--- a/gpu/command_buffer/client/vertex_array_object_manager.h
+++ b/gpu/command_buffer/client/vertex_array_object_manager.h
@@ -52,6 +52,9 @@ class GLES2_IMPL_EXPORT VertexArrayObjectManager {
// Returns false if array is an unknown id.
bool BindVertexArray(GLuint array, bool* changed);
+ // Whether client side buffers are supported.
+ bool SupportsClientSideBuffers();
+
// simulated will be set to true if buffers were simulated.
// Returns true service should be called.
bool SetupSimulatedClientSideBuffers(

Powered by Google App Engine
This is Rietveld 408576698