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

Unified Diff: content/common/gpu/image_transport_surface.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: content/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index 1cdbd801e256a49872ed1c2a4b07ee56f09b2386..2702d8c519d2f3299e4555b8b4fc6b17df85075f 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -66,9 +66,6 @@ bool ImageTransportHelper::Initialize() {
if (!decoder)
return false;
- decoder->SetResizeCallback(
- base::Bind(&ImageTransportHelper::Resize, base::Unretained(this)));
-
stub_->SetLatencyInfoCallback(
base::Bind(&ImageTransportHelper::SetLatencyInfo,
base::Unretained(this)));
@@ -135,15 +132,6 @@ void ImageTransportHelper::OnBufferPresented(
}
#endif
-void ImageTransportHelper::Resize(gfx::Size size, float scale_factor) {
- surface_->OnResize(size, scale_factor);
-
-#if defined(OS_ANDROID)
- manager_->gpu_memory_manager()->ScheduleManage(
- GpuMemoryManager::kScheduleManageNow);
-#endif
-}
-
void ImageTransportHelper::SetLatencyInfo(
const std::vector<ui::LatencyInfo>& latency_info) {
surface_->SetLatencyInfo(latency_info);
@@ -258,11 +246,6 @@ void PassThroughImageTransportSurface::OnBufferPresented(
}
#endif
-void PassThroughImageTransportSurface::OnResize(gfx::Size size,
- float scale_factor) {
- Resize(size);
-}
-
gfx::Size PassThroughImageTransportSurface::GetSize() {
return GLSurfaceAdapter::GetSize();
}
« no previous file with comments | « content/common/gpu/image_transport_surface.h ('k') | content/common/gpu/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698