[GPU] Remove dead GLImageBacking::InitializePixels()

Change-Id: I652ef1e16327ab5cc5ab905a80d22962bfab875c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4026463
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1071497}
diff --git a/gpu/command_buffer/service/shared_image/gl_image_backing.cc b/gpu/command_buffer/service/shared_image/gl_image_backing.cc
index b7f473e..b336dfd 100644
--- a/gpu/command_buffer/service/shared_image/gl_image_backing.cc
+++ b/gpu/command_buffer/service/shared_image/gl_image_backing.cc
@@ -699,22 +699,4 @@
   return true;
 }
 
-void GLImageBacking::InitializePixels(GLenum format,
-                                      GLenum type,
-                                      const uint8_t* data) {
-  DCHECK_EQ(image_->ShouldBindOrCopy(), gl::GLImage::BIND);
-  RetainGLTexture();
-  BindOrCopyImageIfNeeded();
-
-  const GLenum target = GetGLTarget();
-  gl::GLApi* api = gl::g_current_gl_context;
-  ScopedRestoreTexture scoped_restore(api, target);
-  api->glBindTextureFn(target, GetGLServiceId());
-  ScopedUnpackState scoped_unpack_state(
-      /*uploading_data=*/true);
-  api->glTexSubImage2DFn(target, 0, 0, 0, size().width(), size().height(),
-                         format, type, data);
-  ReleaseGLTexture(true /* have_context */);
-}
-
 }  // namespace gpu
diff --git a/gpu/command_buffer/service/shared_image/gl_image_backing.h b/gpu/command_buffer/service/shared_image/gl_image_backing.h
index c087b09..8d1d3fa 100644
--- a/gpu/command_buffer/service/shared_image/gl_image_backing.h
+++ b/gpu/command_buffer/service/shared_image/gl_image_backing.h
@@ -198,8 +198,6 @@
   GLImageBacking& operator=(const GLImageBacking& other) = delete;
   ~GLImageBacking() override;
 
-  void InitializePixels(GLenum format, GLenum type, const uint8_t* data);
-
   GLenum GetGLTarget() const;
   GLuint GetGLServiceId() const;
   std::unique_ptr<gfx::GpuFence> GetLastWriteGpuFence();