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

Side by Side Diff: ui/snapshot/snapshot_async.h

Issue 281003002: Make ui::Snapshot asynchronous on Android, remove CompositeAndReadback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pixeltests: betterexpectations Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
Ted C 2014/05/14 01:13:18 don't need the (c) anymore
danakj 2014/05/14 14:33:20 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
6 #define UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
7
8 #include "cc/output/copy_output_result.h"
9 #include "ui/snapshot/snapshot.h"
10
11 namespace base {
12 class TaskRunner;
13 }
14
15 namespace gfx {
16 class Size;
17 }
18
19 namespace ui {
20
21 // Helper methods for async snapshots to convert a cc::CopyOutputResult into a
22 // ui::GrabWindowSnapshot callback.
23 class SnapshotAsync {
24 public:
25 static void ScaleCopyOutputResult(
26 const GrabWindowSnapshotAsyncCallback& callback,
27 const gfx::Size& target_size,
28 scoped_refptr<base::TaskRunner> background_task_runner,
29 scoped_ptr<cc::CopyOutputResult> result);
30
31 static void EncodeCopyOutputResult(
32 const GrabWindowSnapshotAsyncPNGCallback& callback,
33 scoped_refptr<base::TaskRunner> background_task_runner,
34 scoped_ptr<cc::CopyOutputResult> result);
35
36 private:
37 SnapshotAsync(); // Not instantiable.
sky 2014/05/13 23:43:13 SnapshotAsync->DISALLOW_IMPLICIT_CONSTRUCTORS
danakj 2014/05/14 14:33:20 Done.
38 };
39
40 } // namespace ui
41
42 #endif // UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698