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

Unified Diff: ui/surface/accelerated_surface_win.h

Issue 11782018: Revert 174920 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 | « 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 175378)
+++ ui/surface/accelerated_surface_win.h (working copy)
@@ -26,11 +26,10 @@
class SURFACE_EXPORT AcceleratedPresenter
: public base::RefCountedThreadSafe<AcceleratedPresenter> {
public:
- typedef base::Callback<void(bool)> CopyCompletionTask;
+ typedef base::Callback<void(bool,
+ base::TimeTicks,
+ base::TimeDelta)> CompletionTask;
- 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
@@ -46,8 +45,7 @@
void AsyncPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_handle,
- const CopyCompletionTask& copy_completion_task,
- const PresentCompletionTask& present_completion_task);
+ const CompletionTask& completion_task);
// Schedule the presenter to free all its resources. This can be called on any
// thread.
@@ -83,8 +81,7 @@
void DoPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_handle,
- const CopyCompletionTask& copy_completion_task,
- const PresentCompletionTask& present_completion_task);
+ const CompletionTask& 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