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

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
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b797da9286b5c5257a9a048bdb1e533fc5fa1ddd..e3c1cb47482295b76b10f2948edd49138160c441 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) {
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698