Index: gpu/command_buffer/service/common_decoder.h |
diff --git a/gpu/command_buffer/service/common_decoder.h b/gpu/command_buffer/service/common_decoder.h |
index a8b5d75f933adb0639ee24737eb42c95f6a72d11..aca9296cbd60a534aa1f0385c4c94d8ef05683c8 100644 |
--- a/gpu/command_buffer/service/common_decoder.h |
+++ b/gpu/command_buffer/service/common_decoder.h |
@@ -147,6 +147,19 @@ class GPU_EXPORT CommonDecoder : NON_EXPORTED_BASE(public AsyncAPIInterface) { |
return static_cast<T>(GetAddressAndCheckSize(shm_id, offset, size)); |
} |
+ void* GetAddressAndSize(unsigned int shm_id, |
+ unsigned int offset, |
+ unsigned int* size); |
+ |
+ template <typename T> |
+ T GetSharedMemoryAndSizeAs(unsigned int shm_id, |
+ unsigned int offset, |
+ unsigned int* size) { |
+ return static_cast<T>(GetAddressAndSize(shm_id, offset, size)); |
+ } |
+ |
+ unsigned int GetSharedMemorySize(unsigned int shm_id, unsigned int offset); |
+ |
// Get the actual shared memory buffer. |
scoped_refptr<gpu::Buffer> GetSharedMemoryBuffer(unsigned int shm_id); |