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

Unified Diff: content/common/gpu/image_transport_surface.cc

Issue 10274009: GpuMemoryManager should limit memory allocations based on viewport size for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bonus allocations need not be split on android. Its a single number based on size. Created 8 years, 8 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 e1fadf609f1e54d800bee89b96fe1f0ebacfd490..d7640bad96b97a68b85d99c1e08db9a854020bb5 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -224,6 +224,10 @@ void ImageTransportHelper::Resize(gfx::Size size) {
surface_->OnResize(size);
+#if defined(OS_ANDROID)
+ manager_->gpu_memory_manager()->ScheduleManage();
mmocny 2012/05/03 15:00:12 I suspect its not possible to resize on android an
jonathan.backer 2012/05/04 14:25:28 How does screen rotation work? I suspect that we g
mmocny 2012/05/04 14:37:21 Good point! Actually the size of the chrome (as in
+#endif
+
#if defined(OS_WIN)
Decoder()->MakeCurrent();
SetSwapInterval();
« content/common/gpu/gpu_memory_manager.cc ('K') | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698