summaryrefslogtreecommitdiffstats
path: root/gpu/pgl
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 22:24:14 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 22:24:14 +0000
commitf7a64eee4a7c9556a2199bebb4110f7cef9b6d3c (patch)
tree487908060385ef696fdcf5dc9078cbb4b5dcdf2b /gpu/pgl
parentc0c4565b3c287e7aca0ed2b913f82a74155fb813 (diff)
downloadchromium_src-f7a64eee4a7c9556a2199bebb4110f7cef9b6d3c.zip
chromium_src-f7a64eee4a7c9556a2199bebb4110f7cef9b6d3c.tar.gz
chromium_src-f7a64eee4a7c9556a2199bebb4110f7cef9b6d3c.tar.bz2
Renamed ParseError -> Error, parse_error -> error, kParseNoError -> kNoError, commandBufferEntries -> commandBufferSize.
Added NPDevice3DContextError enumeration. TEST=none BUG=none Review URL: http://codereview.chromium.org/558054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/pgl')
-rw-r--r--gpu/pgl/command_buffer_pepper.cc12
-rw-r--r--gpu/pgl/command_buffer_pepper.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/gpu/pgl/command_buffer_pepper.cc b/gpu/pgl/command_buffer_pepper.cc
index 8522bbe..0c77d1e 100644
--- a/gpu/pgl/command_buffer_pepper.cc
+++ b/gpu/pgl/command_buffer_pepper.cc
@@ -36,13 +36,13 @@ bool CommandBufferPepper::Initialize(int32 size) {
Buffer CommandBufferPepper::GetRingBuffer() {
Buffer buffer;
buffer.ptr = context_->commandBuffer;
- buffer.size = context_->commandBufferEntries * sizeof(int32);
+ buffer.size = context_->commandBufferSize * sizeof(int32);
return buffer;
}
CommandBuffer::State CommandBufferPepper::GetState() {
if (NPERR_NO_ERROR != device_->flushContext(npp_, context_, NULL, NULL))
- context_->error = gpu::parse_error::kParseGenericError;
+ context_->error = NPDeviceContext3DError_GenericError;
return ConvertState();
}
@@ -51,7 +51,7 @@ CommandBuffer::State CommandBufferPepper::Flush(int32 put_offset) {
context_->putOffset = put_offset;
if (NPERR_NO_ERROR != device_->flushContext(npp_, context_, NULL, NULL))
- context_->error = gpu::parse_error::kParseGenericError;
+ context_->error = NPDeviceContext3DError_GenericError;
return ConvertState();
}
@@ -90,18 +90,18 @@ void CommandBufferPepper::SetToken(int32 token) {
}
void CommandBufferPepper::SetParseError(
- gpu::parse_error::ParseError parse_error) {
+ gpu::error::Error error) {
// Not implemented by proxy.
NOTREACHED();
}
CommandBuffer::State CommandBufferPepper::ConvertState() {
CommandBuffer::State state;
- state.size = context_->commandBufferEntries;
+ state.size = context_->commandBufferSize;
state.get_offset = context_->getOffset;
state.put_offset = context_->putOffset;
state.token = context_->token;
- state.error = static_cast<gpu::parse_error::ParseError>(
+ state.error = static_cast<gpu::error::Error>(
context_->error);
return state;
}
diff --git a/gpu/pgl/command_buffer_pepper.h b/gpu/pgl/command_buffer_pepper.h
index b3efaea..3719e39 100644
--- a/gpu/pgl/command_buffer_pepper.h
+++ b/gpu/pgl/command_buffer_pepper.h
@@ -35,7 +35,7 @@ class CommandBufferPepper : public gpu::CommandBuffer {
virtual void DestroyTransferBuffer(int32 id);
virtual gpu::Buffer GetTransferBuffer(int32 handle);
virtual void SetToken(int32 token);
- virtual void SetParseError(gpu::parse_error::ParseError parse_error);
+ virtual void SetParseError(gpu::error::Error error);
private:
CommandBuffer::State ConvertState();