summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/common_decoder.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-27 07:43:43 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-27 07:43:43 +0000
commit4f0c32d419b2a9783e1458192f5c0d3d79813764 (patch)
tree937023c99cbd754e9e9a6e0b5300f16ffca9aebf /gpu/command_buffer/service/common_decoder.h
parent8c809a36b0ba392460822306392ee0b1be2e84c8 (diff)
downloadchromium_src-4f0c32d419b2a9783e1458192f5c0d3d79813764.zip
chromium_src-4f0c32d419b2a9783e1458192f5c0d3d79813764.tar.gz
chromium_src-4f0c32d419b2a9783e1458192f5c0d3d79813764.tar.bz2
Revert http://codereview.chromium.org/660238
TEST=none BUG=none TBR=gman@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/common_decoder.h')
-rw-r--r--gpu/command_buffer/service/common_decoder.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/common_decoder.h b/gpu/command_buffer/service/common_decoder.h
index 9ea0d6f..2300e5a 100644
--- a/gpu/command_buffer/service/common_decoder.h
+++ b/gpu/command_buffer/service/common_decoder.h
@@ -57,7 +57,7 @@ class CommonDecoder : public AsyncAPIInterface {
// Gets a pointer to a section the bucket. Returns NULL if offset or size is
// out of range.
- void* GetData(size_t offset, size_t size) const;
+ const void* GetData(size_t offset, size_t size) const;
template <typename T>
T GetDataAs(size_t offset, size_t size) const {
@@ -71,8 +71,7 @@ class CommonDecoder : public AsyncAPIInterface {
// Returns false if offset or size is out of range.
bool SetData(const void* src, size_t offset, size_t size);
- // Sets the bucket data from a string. Strings are passed NULL terminated to
- // distinguish between empty string and no string.
+ // Sets the bucket data from a string.
void SetFromString(const std::string& str);
private: