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

Unified Diff: athena/content/content_proxy.cc

Issue 611773002: Fixing issues with new activity image readback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | athena/content/web_activity.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/content_proxy.cc
diff --git a/athena/content/content_proxy.cc b/athena/content/content_proxy.cc
index 7dce0e9266ec0ede53b7d2f90095e9215afa6245..bcef5444466683811be764ce26d2859f508524df 100644
--- a/athena/content/content_proxy.cc
+++ b/athena/content/content_proxy.cc
@@ -82,12 +82,12 @@ void ContentProxy::ContentWillUnload() {
gfx::ImageSkia ContentProxy::GetContentImage() {
// While we compress to PNG, we use the original read back.
- if (!raw_image_.isNull() || !png_data_.get())
+ if (!png_data_.get())
return raw_image_;
// Otherwise we convert the PNG.
std::vector<gfx::ImagePNGRep> image_reps;
- image_reps.push_back(gfx::ImagePNGRep(png_data_, 0.0f));
+ image_reps.push_back(gfx::ImagePNGRep(png_data_, 1.0f));
return *(gfx::Image(image_reps).ToImageSkia());
}
« no previous file with comments | « no previous file | athena/content/web_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698