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

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

Issue 2909003002: Add gpu::BufferBacking::shared_memory_handle() (Closed)
Patch Set: Created 3 years, 7 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/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 d4de9175471160c9cd478e690978d50b0d207764..6a0a0d28ef2d73d14984115970a46f2882ec0c65 100644
--- a/gpu/command_buffer/common/buffer.h
+++ b/gpu/command_buffer/common/buffer.h
@@ -17,8 +17,11 @@
#include "gpu/gpu_export.h"
namespace base {
- class SharedMemory;
-}
+
+class SharedMemory;
+class SharedMemoryHandle;
+
+} // namespace base
namespace gpu {
@@ -26,6 +29,7 @@ class GPU_EXPORT BufferBacking {
public:
virtual ~BufferBacking() {}
virtual bool is_shared() const;
+ virtual base::SharedMemoryHandle shared_memory_handle() const;
virtual void* GetMemory() const = 0;
virtual size_t GetSize() const = 0;
};
@@ -36,6 +40,7 @@ class GPU_EXPORT SharedMemoryBufferBacking : public BufferBacking {
size_t size);
~SharedMemoryBufferBacking() override;
bool is_shared() const override;
+ base::SharedMemoryHandle shared_memory_handle() const override;
void* GetMemory() const override;
size_t GetSize() const override;
base::SharedMemory* shared_memory() { return shared_memory_.get(); }
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/common/buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698