summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 00:19:42 +0000
committerjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 00:19:42 +0000
commit91b104034308452e32b4bb99498afe1724febbb9 (patch)
tree4ae1402d2daf41ab9c940730685091f107432b03
parent5736299f6a3a48b915354a7d8f5d30994620b21e (diff)
downloadchromium_src-91b104034308452e32b4bb99498afe1724febbb9.zip
chromium_src-91b104034308452e32b4bb99498afe1724febbb9.tar.gz
chromium_src-91b104034308452e32b4bb99498afe1724febbb9.tar.bz2
Fix the incorrect method name override.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6820079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81338 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/renderer/webgraphicscontext3d_command_buffer_impl.cc5
-rw-r--r--gpu/command_buffer/common/constants.h3
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc4
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.h4
4 files changed, 10 insertions, 6 deletions
diff --git a/content/renderer/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
index 6f23d2da..39e7919 100644
--- a/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -22,6 +22,7 @@
#include "chrome/renderer/render_thread.h"
#include "content/renderer/gpu_channel_host.h"
#include "content/renderer/render_view.h"
+#include "gpu/command_buffer/common/constants.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
@@ -346,7 +347,7 @@ void WebGraphicsContext3DCommandBufferImpl::getParentToChildLatchCHROMIUM(
if (!context_->GetParentToChildLatch(latch_id)) {
LOG(ERROR) << "getLatch must only be called on child context";
synthesizeGLError(GL_INVALID_OPERATION);
- *latch_id = 0xffffffffu;
+ *latch_id = gpu::kInvalidLatchId;
}
}
@@ -356,7 +357,7 @@ void WebGraphicsContext3DCommandBufferImpl::getChildToParentLatchCHROMIUM(
if (!context_->GetChildToParentLatch(latch_id)) {
LOG(ERROR) << "getLatch must only be called on child context";
synthesizeGLError(GL_INVALID_OPERATION);
- *latch_id = 0xffffffffu;
+ *latch_id = gpu::kInvalidLatchId;
}
}
diff --git a/gpu/command_buffer/common/constants.h b/gpu/command_buffer/common/constants.h
index 521a8b6..bebc046 100644
--- a/gpu/command_buffer/common/constants.h
+++ b/gpu/command_buffer/common/constants.h
@@ -46,6 +46,9 @@ const int32 kCommandBufferSharedMemoryId = 4;
// Common Latch shared memory transfer buffer ID.
const int32 kLatchSharedMemoryId = 5;
+// Invalid latch ID.
+const int32 kInvalidLatchId = 0xffffffffu;
+
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index 27a0c99..32b3fa3 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -654,12 +654,12 @@ void WebGraphicsContext3DInProcessImpl::copyTextureToParentTextureCHROMIUM(
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, bound_fbo_);
}
-void WebGraphicsContext3DInProcessImpl::getLatchParentToChildCHROMIUM(
+void WebGraphicsContext3DInProcessImpl::getParentToChildLatchCHROMIUM(
WGC3Duint* latch_id)
{
}
-void WebGraphicsContext3DInProcessImpl::getLatchChildToParentCHROMIUM(
+void WebGraphicsContext3DInProcessImpl::getChildToParentLatchCHROMIUM(
WGC3Duint* latch_id)
{
}
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
index 600b22c..015bdfa 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
@@ -89,8 +89,8 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D {
virtual void copyTextureToParentTextureCHROMIUM(
WebGLId texture, WebGLId parentTexture);
- virtual void getLatchParentToChildCHROMIUM(WGC3Duint* latch_id);
- virtual void getLatchChildToParentCHROMIUM(WGC3Duint* latch_id);
+ virtual void getParentToChildLatchCHROMIUM(WGC3Duint* latch_id);
+ virtual void getChildToParentLatchCHROMIUM(WGC3Duint* latch_id);
virtual void waitLatchCHROMIUM(WGC3Duint latch_id);
virtual void setLatchCHROMIUM(WGC3Duint latch_id);