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

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

Issue 1783763002: [WebGL 2] primitive restart should be always enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a TODO for emulation of primitive restart, will work on it soon Created 4 years, 9 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/service/buffer_manager.h
diff --git a/gpu/command_buffer/service/buffer_manager.h b/gpu/command_buffer/service/buffer_manager.h
index 33df818647966ed15770dcbe77aa83e0f05e2e55..a6a944e58df7a5c344e29795a31b7d4c5758897e 100644
--- a/gpu/command_buffer/service/buffer_manager.h
+++ b/gpu/command_buffer/service/buffer_manager.h
@@ -275,6 +275,8 @@ class GPU_EXPORT BufferManager : public base::trace_event::MemoryDumpProvider {
bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) override;
+ void SetPrimitiveRestartState(bool enabled);
+
private:
friend class Buffer;
friend class TestHelper; // Needs access to DoBufferData.
@@ -326,6 +328,8 @@ class GPU_EXPORT BufferManager : public base::trace_event::MemoryDumpProvider {
// Allows to check no Buffer will outlive this.
unsigned int buffer_count_;
+ bool primitive_restart_enabled_;
+
bool have_context_;
bool use_client_side_arrays_for_stream_buffers_;
« no previous file with comments | « no previous file | gpu/command_buffer/service/buffer_manager.cc » ('j') | gpu/command_buffer/service/buffer_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698