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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 261663004: content: Enable SkScaledImageCache on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 58407c89bb110256ad7b1405ceeb5ff3aae4d5d7..cd379abb4ad4eec25515b27baf3283f0a7995a27 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -789,17 +789,10 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
webkit::SetSharedMemoryAllocationFunction(AllocateSharedMemoryFunction);
- // Limit use of the scaled image cache to when deferred image decoding
- // is enabled.
- // TODO(reveman): Allow use of this cache on Android once
- // SkDiscardablePixelRef is used for decoded images. crbug.com/330041
- bool use_skia_scaled_image_cache = false;
-#if !defined(OS_ANDROID)
- use_skia_scaled_image_cache =
- command_line.HasSwitch(switches::kEnableDeferredImageDecoding) ||
- is_impl_side_painting_enabled_;
-#endif
- if (!use_skia_scaled_image_cache)
+ // Limit use of the scaled image cache to when deferred image decoding is
+ // enabled.
+ if (!command_line.HasSwitch(switches::kEnableDeferredImageDecoding) &&
+ !is_impl_side_painting_enabled_)
SkGraphics::SetImageCacheByteLimit(0u);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698