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

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

Issue 2012533004: Add generated and hand-written passthrough command handlers with stub Doers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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);

Powered by Google App Engine
This is Rietveld 408576698