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

Unified Diff: services/ui/surfaces/direct_output_surface.h

Issue 2529703002: Mus: Install SwapBuffersCompleted/VSync callbacks to DirectOutputSurface(Ozone) (Closed)
Patch Set: Grab capabilities from the InProcessCommandBuffer instead of making them up Created 4 years, 1 month 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 | « gpu/ipc/in_process_command_buffer.cc ('k') | services/ui/surfaces/direct_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/direct_output_surface.h
diff --git a/services/ui/surfaces/direct_output_surface.h b/services/ui/surfaces/direct_output_surface.h
index dd280cf0ddd45a0b0db524b2ad73f49bdd6a23c3..a377039c7b0ec981f1d1a6001139d8db820965bf 100644
--- a/services/ui/surfaces/direct_output_surface.h
+++ b/services/ui/surfaces/direct_output_surface.h
@@ -46,12 +46,17 @@ class DirectOutputSurface : public cc::OutputSurface {
private:
- void OnSwapBuffersComplete();
- void OnVSyncParametersUpdated(const base::TimeTicks& timebase,
- const base::TimeDelta& interval);
+ // Called when a swap completion is signaled from ImageTransportSurface.
+ void OnGpuSwapBuffersCompleted(
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result,
+ const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac);
+ void OnVSyncParametersUpdated(base::TimeTicks timebase,
+ base::TimeDelta interval);
cc::OutputSurfaceClient* client_ = nullptr;
cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
+
base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
};
« no previous file with comments | « gpu/ipc/in_process_command_buffer.cc ('k') | services/ui/surfaces/direct_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698