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

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

Issue 2471533003: Minor improvement in uniform block backing buffer validation. (Closed)
Patch Set: rebase Created 4 years, 1 month 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/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 31683bdc2ef6360cb0117e713b24da45d2000351..d32f37a1b332f3003fbf660aa241ac5af4c8a3f6 100644
--- a/gpu/command_buffer/service/buffer_manager.h
+++ b/gpu/command_buffer/service/buffer_manager.h
@@ -338,10 +338,6 @@ class GPU_EXPORT BufferManager : public base::trace_event::MemoryDumpProvider {
const char* func_name,
const char* message_tag);
- uint32_t mapped_buffer_count() const {
- return mapped_buffer_count_;
- }
-
private:
friend class Buffer;
friend class TestHelper; // Needs access to DoBufferData.
@@ -392,9 +388,6 @@ class GPU_EXPORT BufferManager : public base::trace_event::MemoryDumpProvider {
GLenum usage,
bool use_shadow);
- void IncreaseMappedBufferCount();
- void DecreaseMappedBufferCount();
-
// Same as public RequestBufferAccess taking similar arguments, but
// allows caller to assemble the va_list.
bool RequestBufferAccessV(ErrorState* error_state,
@@ -429,10 +422,6 @@ class GPU_EXPORT BufferManager : public base::trace_event::MemoryDumpProvider {
bool lost_context_;
bool use_client_side_arrays_for_stream_buffers_;
- // Keep track of total mapped buffer count. In most use cases it should be 0,
- // so we could bypass checking each individual buffer as an optimization.
- uint32_t mapped_buffer_count_;
-
DISALLOW_COPY_AND_ASSIGN(BufferManager);
};
« no previous file with comments | « no previous file | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698