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

Unified Diff: content/browser/compositor/image_transport_factory.h

Issue 1416493010: Clean up Mac swap acknowledgement code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update latency info Created 5 years, 2 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
Index: content/browser/compositor/image_transport_factory.h
diff --git a/content/browser/compositor/image_transport_factory.h b/content/browser/compositor/image_transport_factory.h
index a5cd0898b5afbff13781f67c6558206278e7f853..bc19afe3fb0758f0526aba5d507264d37c421524 100644
--- a/content/browser/compositor/image_transport_factory.h
+++ b/content/browser/compositor/image_transport_factory.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "cc/surfaces/surface_id_allocator.h"
#include "content/common/content_export.h"
+#include "ui/events/latency_info.h"
#include "ui/gfx/native_widget_types.h"
namespace cc {
@@ -19,6 +20,7 @@ class SurfaceManager;
namespace gfx {
class Size;
+enum class SwapResult;
}
namespace ui {
@@ -83,7 +85,11 @@ class CONTENT_EXPORT ImageTransportFactory {
virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0;
#if defined(OS_MACOSX)
- virtual void OnSurfaceDisplayed(int surface_id) = 0;
+ virtual void OnGpuSwapBuffersCompleted(
+ int surface_id,
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result) = 0;
+
// Called with |suspended| as true when the ui::Compositor has been
// disconnected from an NSView and may be attached to another one. Called
// with |suspended| as false after the ui::Compositor has been connected to

Powered by Google App Engine
This is Rietveld 408576698