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

Unified Diff: gpu/command_buffer/common/buffer.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: rebase Created 4 years, 6 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/command_buffer/build_gles2_cmd_buffer.py ('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 0aea591f716bcb7e1ff5455df36348ab0cd1888b..180779317b6bed74f424c01c5fb6213df3d3ade8 100644
--- a/gpu/command_buffer/common/buffer.h
+++ b/gpu/command_buffer/common/buffer.h
@@ -56,6 +56,12 @@ class GPU_EXPORT Buffer : public base::RefCountedThreadSafe<Buffer> {
// Returns NULL if the address overflows the memory.
void* GetDataAddress(uint32_t data_offset, uint32_t data_size) const;
+ // Returns NULL if the address overflows the memory.
+ void* GetDataAddressAndSize(uint32_t data_offset, uint32_t* data_size) const;
+
+ // Returns the remaining size of the buffer after an offset
+ uint32_t GetRemainingSize(uint32_t data_offset) const;
+
private:
friend class base::RefCountedThreadSafe<Buffer>;
~Buffer();
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698