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

Unified Diff: ui/snapshot/snapshot_aura_unittest.cc

Issue 78903003: Added a new overload of gfx::Image::CreateFrom1xPNGBytes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years 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 | « ui/gfx/image/image.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_aura_unittest.cc
diff --git a/ui/snapshot/snapshot_aura_unittest.cc b/ui/snapshot/snapshot_aura_unittest.cc
index da46bcc0e0f0297cc4eb9bb31176faf0b3791410..da26bcc8dc927b8553e370c895365d2b263a5d1f 100644
--- a/ui/snapshot/snapshot_aura_unittest.cc
+++ b/ui/snapshot/snapshot_aura_unittest.cc
@@ -100,7 +100,7 @@ class SnapshotAuraTest : public testing::Test {
gfx::Rect local_bounds(test_window_->bounds().size());
ui::GrabWindowSnapshot(test_window(), &png_representation, local_bounds);
return gfx::Image::CreateFrom1xPNGBytes(
- &(png_representation[0]), png_representation.size());
+ base::RefCountedBytes::TakeVector(&png_representation));
}
private:
« no previous file with comments | « ui/gfx/image/image.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698