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

Unified Diff: ui/snapshot/snapshot_aura_unittest.cc

Issue 126373002: Make ChromeOS screenshots use async readback path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix rebase error Created 6 years, 11 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 | « ui/snapshot/snapshot_aura.cc ('k') | ui/snapshot/snapshot_gtk.cc » ('j') | 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 6e5705a5a55b12b7bd2a1216cab06d9177e9505c..97a86c4ced8fad083e0addb26efda3ad8dfa29bc 100644
--- a/ui/snapshot/snapshot_aura_unittest.cc
+++ b/ui/snapshot/snapshot_aura_unittest.cc
@@ -139,9 +139,10 @@ class SnapshotAuraTest : public testing::TestWithParam<bool> {
public:
SnapshotHolder() : completed_(false) {}
- void SnapshotCallback(const gfx::Image& image) {
+ void SnapshotCallback(scoped_refptr<base::RefCountedBytes> png_data) {
DCHECK(!completed_);
- image_ = image;
+ image_ = gfx::Image::CreateFrom1xPNGBytes(&(png_data->data()[0]),
+ png_data->size());
completed_ = true;
}
bool completed() const {
« no previous file with comments | « ui/snapshot/snapshot_aura.cc ('k') | ui/snapshot/snapshot_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698