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

Unified Diff: content/browser/compositor/browser_compositor_output_surface.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
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/browser_compositor_output_surface.h
diff --git a/content/browser/compositor/browser_compositor_output_surface.h b/content/browser/compositor/browser_compositor_output_surface.h
index f5da02d56959802b86fd2d33076a505bec7c77f4..db815efdd313802c4c7d81cce3ccdb1448479207 100644
--- a/content/browser/compositor/browser_compositor_output_surface.h
+++ b/content/browser/compositor/browser_compositor_output_surface.h
@@ -14,6 +14,10 @@ namespace cc {
class SoftwareOutputDevice;
}
+namespace gfx {
+enum class SwapResult;
+}
+
namespace content {
class BrowserCompositorOverlayCandidateValidator;
class ContextProviderCommandBuffer;
@@ -46,8 +50,12 @@ class CONTENT_EXPORT BrowserCompositorOutputSurface
// compositors have started composition.
virtual base::Closure CreateCompositionStartedCallback();
+ // Called when a swap completion is sent from the GPU process.
+ virtual void OnGpuSwapBuffersCompleted(
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result) = 0;
+
#if defined(OS_MACOSX)
- virtual void OnSurfaceDisplayed() = 0;
virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0;
virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const = 0;
#endif
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698