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

Unified Diff: components/mus/gles2/command_buffer_driver.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_driver.h ('k') | components/mus/gles2/command_buffer_local.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_driver.cc
diff --git a/components/mus/gles2/command_buffer_driver.cc b/components/mus/gles2/command_buffer_driver.cc
index dde7c2ccb2f72eef1d8c2a1653023af0798f64b1..65b487403db82c91e7df40211c95f382d0a82872 100644
--- a/components/mus/gles2/command_buffer_driver.cc
+++ b/components/mus/gles2/command_buffer_driver.cc
@@ -113,8 +113,6 @@ bool CommandBufferDriver::DoInitialize(
scheduler_.reset(new gpu::GpuScheduler(command_buffer_.get(), decoder_.get(),
decoder_.get()));
decoder_->set_engine(scheduler_.get());
- decoder_->SetResizeCallback(
- base::Bind(&CommandBufferDriver::OnResize, base::Unretained(this)));
decoder_->SetWaitSyncPointCallback(base::Bind(
&CommandBufferDriver::OnWaitSyncPoint, base::Unretained(this)));
decoder_->SetFenceSyncReleaseCallback(base::Bind(
@@ -276,10 +274,6 @@ void CommandBufferDriver::OnParseError() {
OnContextLost(state.context_lost_reason);
}
-void CommandBufferDriver::OnResize(gfx::Size size, float scale_factor) {
- surface_->Resize(size);
-}
-
bool CommandBufferDriver::OnWaitSyncPoint(uint32_t sync_point) {
if (!sync_point)
return true;
« no previous file with comments | « components/mus/gles2/command_buffer_driver.h ('k') | components/mus/gles2/command_buffer_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698