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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.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 | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/in_process_command_buffer.cc
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
index 77647efad256f9b37c572b320432098cc95e638f..2bc59090f70593466486dbbe1b2ae1615090cf3a 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.cc
+++ b/gpu/command_buffer/service/in_process_command_buffer.cc
@@ -198,12 +198,6 @@ InProcessCommandBuffer::~InProcessCommandBuffer() {
Destroy();
}
-void InProcessCommandBuffer::OnResizeView(gfx::Size size, float scale_factor) {
- CheckSequencedThread();
- DCHECK(!surface_->IsOffscreen());
- surface_->Resize(size);
-}
-
bool InProcessCommandBuffer::MakeCurrent() {
CheckSequencedThread();
command_buffer_lock_.AssertAcquired();
@@ -411,10 +405,6 @@ bool InProcessCommandBuffer::InitializeOnGpuThread(
}
*params.capabilities = decoder_->GetCapabilities();
- if (!params.is_offscreen) {
- decoder_->SetResizeCallback(base::Bind(
- &InProcessCommandBuffer::OnResizeView, gpu_thread_weak_ptr_));
- }
decoder_->SetWaitSyncPointCallback(
base::Bind(&InProcessCommandBuffer::WaitSyncPointOnGpuThread,
base::Unretained(this)));
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698