Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: components/mus/gles2/command_buffer_local.cc

Issue 1420503011: GLES2CmdDecoder should resize GLSurface using GLSurface::Resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/mus/gles2/command_buffer_local.cc
diff --git a/components/mus/gles2/command_buffer_local.cc b/components/mus/gles2/command_buffer_local.cc
index 2c6f7ac3b52454fc24961511724c895ed1f11891..9b16ab391b8a8b053b31308531e45b3d09808920 100644
--- a/components/mus/gles2/command_buffer_local.cc
+++ b/components/mus/gles2/command_buffer_local.cc
@@ -90,8 +90,6 @@ bool CommandBufferLocal::Initialize() {
scheduler_.reset(new gpu::GpuScheduler(command_buffer_.get(), decoder_.get(),
decoder_.get()));
decoder_->set_engine(scheduler_.get());
- decoder_->SetResizeCallback(
- base::Bind(&CommandBufferLocal::OnResize, base::Unretained(this)));
decoder_->SetWaitSyncPointCallback(
base::Bind(&CommandBufferLocal::OnWaitSyncPoint, base::Unretained(this)));
decoder_->SetFenceSyncReleaseCallback(base::Bind(
@@ -263,10 +261,6 @@ void CommandBufferLocal::PumpCommands() {
scheduler_->PutChanged();
}
-void CommandBufferLocal::OnResize(gfx::Size size, float scale_factor) {
- surface_->Resize(size);
-}
-
void CommandBufferLocal::OnUpdateVSyncParameters(
const base::TimeTicks timebase,
const base::TimeDelta interval) {

Powered by Google App Engine
This is Rietveld 408576698