summaryrefslogtreecommitdiffstats
path: root/webkit/gpu
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 20:21:13 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 20:21:13 +0000
commit51411e395569ea64f9a2529fc3eff26a2d9c7f39 (patch)
tree885e0c156a21db1eca9d450dfd6e91c2591d901d /webkit/gpu
parent7a43e6c7d0c5bdecf43f3d5d4ad286ae890bf230 (diff)
downloadchromium_src-51411e395569ea64f9a2529fc3eff26a2d9c7f39.zip
chromium_src-51411e395569ea64f9a2529fc3eff26a2d9c7f39.tar.gz
chromium_src-51411e395569ea64f9a2529fc3eff26a2d9c7f39.tar.bz2
Code cleanup.
Seems these callbacks aren't needed anymore. BUG=none TEST=bots stay green; by hand with simple_vertex_shader_ppapi Review URL: http://codereview.chromium.org/9253020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118344 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 99e74b3..353148b 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -139,10 +139,6 @@ class GLInProcessContext : public base::SupportsWeakPtr<GLInProcessContext> {
// Deletes a texture in the parent's GLInProcessContext.
void DeleteParentTexture(uint32 texture);
- // Provides a callback that will be invoked when SwapBuffers has completed
- // service side.
- void SetSwapBuffersCallback(const base::Closure& callback);
-
void SetContextLostCallback(const base::Closure& callback);
// Set the current GLInProcessContext for the calling thread.
@@ -183,11 +179,9 @@ class GLInProcessContext : public base::SupportsWeakPtr<GLInProcessContext> {
gfx::GpuPreference gpu_preference);
void Destroy();
- void OnSwapBuffers();
void OnContextLost();
base::WeakPtr<GLInProcessContext> parent_;
- base::Closure swap_buffers_callback_;
base::Closure context_lost_callback_;
uint32 parent_texture_id_;
scoped_ptr<CommandBufferService> command_buffer_;
@@ -331,10 +325,6 @@ void GLInProcessContext::DeleteParentTexture(uint32 texture) {
gles2_implementation_->DeleteTextures(1, &texture);
}
-void GLInProcessContext::SetSwapBuffersCallback(const base::Closure& callback) {
- swap_buffers_callback_ = callback;
-}
-
void GLInProcessContext::SetContextLostCallback(const base::Closure& callback) {
context_lost_callback_ = callback;
}
@@ -595,11 +585,6 @@ void GLInProcessContext::Destroy() {
command_buffer_.reset();
}
-void GLInProcessContext::OnSwapBuffers() {
- if (!swap_buffers_callback_.is_null())
- swap_buffers_callback_.Run();
-}
-
void GLInProcessContext::OnContextLost() {
if (!context_lost_callback_.is_null())
context_lost_callback_.Run();