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

Unified Diff: gpu/command_buffer/service/buffer_manager.h

Issue 2150803003: Introduce gpu_fuzzer to fuzz the GPU command buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fuzzer_land_base
Patch Set: Fix check, zero-out padding 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
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/buffer_manager.h
diff --git a/gpu/command_buffer/service/buffer_manager.h b/gpu/command_buffer/service/buffer_manager.h
index 9615f80f652265881a75553310d6b4115f101344..6c62b9d52325046136eb27a555aa87003806f83b 100644
--- a/gpu/command_buffer/service/buffer_manager.h
+++ b/gpu/command_buffer/service/buffer_manager.h
@@ -264,6 +264,10 @@ class GPU_EXPORT BufferManager : public base::trace_event::MemoryDumpProvider {
// Sets the target of a buffer. Returns false if the target can not be set.
bool SetTarget(Buffer* buffer, GLenum target);
+ void set_max_buffer_size(GLsizeiptr max_buffer_size) {
+ max_buffer_size_ = max_buffer_size;
+ }
+
void set_allow_buffers_on_multiple_targets(bool allow) {
allow_buffers_on_multiple_targets_ = allow;
}
@@ -339,6 +343,9 @@ class GPU_EXPORT BufferManager : public base::trace_event::MemoryDumpProvider {
typedef base::hash_map<GLuint, scoped_refptr<Buffer> > BufferMap;
BufferMap buffers_;
+ // The maximum size of buffers.
+ GLsizeiptr max_buffer_size_;
+
// Whether or not buffers can be bound to multiple targets.
bool allow_buffers_on_multiple_targets_;
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698