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

Unified Diff: chrome/browser/android/thumbnail/thumbnail.cc

Issue 1128113010: Allow retrieval of updated bitmaps in thumbnails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: chrome/browser/android/thumbnail/thumbnail.cc
diff --git a/chrome/browser/android/thumbnail/thumbnail.cc b/chrome/browser/android/thumbnail/thumbnail.cc
index 75d22fcc8ea3ca3f2aced5e5db9785d7726da376..f4c9186e7a5c14f68e5ecf76a038ec63d2bd5e0a 100644
--- a/chrome/browser/android/thumbnail/thumbnail.cc
+++ b/chrome/browser/android/thumbnail/thumbnail.cc
@@ -54,6 +54,7 @@ Thumbnail::~Thumbnail() {
void Thumbnail::SetBitmap(const SkBitmap& bitmap) {
DCHECK(!bitmap.empty());
+ retrieved_ = false;
ClearUIResourceId();
scaled_content_size_ =
gfx::ScaleSize(gfx::Size(bitmap.width(), bitmap.height()), 1.f / scale_);
@@ -65,6 +66,7 @@ void Thumbnail::SetCompressedBitmap(skia::RefPtr<SkPixelRef> compressed_bitmap,
const gfx::Size& content_size) {
DCHECK(compressed_bitmap);
DCHECK(!content_size.IsEmpty());
+ retrieved_ = false;
ClearUIResourceId();
gfx::Size data_size(compressed_bitmap->info().width(),
compressed_bitmap->info().height());
« 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