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

Unified Diff: gpu/command_buffer/common/buffer.h

Issue 2575803002: Bug fix: TranferBufferManager's SharedMemory memory usage reporting was wrong (Closed)
Patch Set: Created 4 years 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/common/buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/buffer.h
diff --git a/gpu/command_buffer/common/buffer.h b/gpu/command_buffer/common/buffer.h
index 180779317b6bed74f424c01c5fb6213df3d3ade8..d4de9175471160c9cd478e690978d50b0d207764 100644
--- a/gpu/command_buffer/common/buffer.h
+++ b/gpu/command_buffer/common/buffer.h
@@ -25,6 +25,7 @@ namespace gpu {
class GPU_EXPORT BufferBacking {
public:
virtual ~BufferBacking() {}
+ virtual bool is_shared() const;
virtual void* GetMemory() const = 0;
virtual size_t GetSize() const = 0;
};
@@ -34,6 +35,7 @@ class GPU_EXPORT SharedMemoryBufferBacking : public BufferBacking {
SharedMemoryBufferBacking(std::unique_ptr<base::SharedMemory> shared_memory,
size_t size);
~SharedMemoryBufferBacking() override;
+ bool is_shared() const override;
void* GetMemory() const override;
size_t GetSize() const override;
base::SharedMemory* shared_memory() { return shared_memory_.get(); }
« no previous file with comments | « no previous file | gpu/command_buffer/common/buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698