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

Unified Diff: ui/surface/accelerated_surface_win.h

Issue 11642051: Reland 174257 with fix for win_aura (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 12 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 | « content/browser/gpu/gpu_process_host.cc ('k') | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/surface/accelerated_surface_win.h
===================================================================
--- ui/surface/accelerated_surface_win.h (revision 174804)
+++ ui/surface/accelerated_surface_win.h (working copy)
@@ -26,10 +26,11 @@
class SURFACE_EXPORT AcceleratedPresenter
: public base::RefCountedThreadSafe<AcceleratedPresenter> {
public:
- typedef base::Callback<void(bool,
- base::TimeTicks,
- base::TimeDelta)> CompletionTask;
+ typedef base::Callback<void(bool)> CopyCompletionTask;
+ typedef base::Callback<void(base::TimeTicks,
+ base::TimeDelta)> PresentCompletionTask;
+
explicit AcceleratedPresenter(gfx::PluginWindowHandle window);
// Returns a thread safe reference to the presenter for the given window or
@@ -45,7 +46,8 @@
void AsyncPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_handle,
- const CompletionTask& completion_task);
+ const CopyCompletionTask& copy_completion_task,
+ const PresentCompletionTask& present_completion_task);
// Schedule the presenter to free all its resources. This can be called on any
// thread.
@@ -81,7 +83,8 @@
void DoPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_handle,
- const CompletionTask& completion_task);
+ const CopyCompletionTask& copy_completion_task,
+ const PresentCompletionTask& present_completion_task);
void DoSuspend();
void DoPresent(const base::Closure& composite_task);
void DoReleaseSurface();
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698