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

Unified Diff: chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc

Issue 2799283003: remove legacy code from PlatformCanvas days (Closed)
Patch Set: Created 3 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 | chrome/browser/thumbnails/simple_thumbnail_crop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc
diff --git a/chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc b/chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc
index 698aaed02bfbe1de55421f470ccbfaba3a609a86..67a00825fb3c583916f807a1b854a22beb3b9234 100644
--- a/chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc
+++ b/chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc
@@ -133,19 +133,6 @@ SkBitmap ContentBasedThumbnailingAlgorithm::PrepareSourceBitmap(
SkBitmap result_bitmap = SkBitmapOperations::DownsampleByTwoUntilSize(
clipped_bitmap, resize_target.width(), resize_target.height());
-#if !defined(USE_AURA)
- // If the bitmap has not been indeed resized, it has to be copied. In that
- // case resampler simply returns a reference to the original bitmap, sitting
- // in PlatformCanvas. One does not simply assign these 'magic' bitmaps to
- // SkBitmap. They cannot be refcounted.
- //
- // With Aura, this does not happen since PlatformCanvas is platform
- // idependent.
- if (clipped_bitmap.width() == result_bitmap.width() &&
- clipped_bitmap.height() == result_bitmap.height()) {
- clipped_bitmap.copyTo(&result_bitmap, kN32_SkColorType);
- }
-#endif
return result_bitmap;
}
« no previous file with comments | « no previous file | chrome/browser/thumbnails/simple_thumbnail_crop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698