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

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

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Improved comment 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
Index: services/ui/surfaces/direct_output_surface_ozone.h
diff --git a/services/ui/surfaces/direct_output_surface_ozone.h b/services/ui/surfaces/direct_output_surface_ozone.h
index d64be1ef889a317be34bc4c191ac889bad861e3b..11c185fea42e3a551e327ba83e29e2887044aade 100644
--- a/services/ui/surfaces/direct_output_surface_ozone.h
+++ b/services/ui/surfaces/direct_output_surface_ozone.h
@@ -9,9 +9,9 @@
#include "base/memory/weak_ptr.h"
#include "cc/output/context_provider.h"
+#include "cc/output/in_process_context_provider.h"
#include "cc/output/output_surface.h"
#include "components/display_compositor/gl_helper.h"
-#include "services/ui/surfaces/surfaces_context_provider.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/swap_result.h"
@@ -39,7 +39,7 @@ namespace ui {
class DirectOutputSurfaceOzone : public cc::OutputSurface {
public:
DirectOutputSurfaceOzone(
- scoped_refptr<SurfacesContextProvider> context_provider,
+ scoped_refptr<cc::InProcessContextProvider> context_provider,
gfx::AcceleratedWidget widget,
cc::SyntheticBeginFrameSource* synthetic_begin_frame_source,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
@@ -74,7 +74,10 @@ class DirectOutputSurfaceOzone : public cc::OutputSurface {
base::TimeDelta interval);
// Called when a swap completion is sent from the GPU process.
rjkroege 2016/11/21 23:05:36 the comment is wrong. please fix it.
Fady Samuel 2016/11/22 01:02:23 Done.
- void OnGpuSwapBuffersCompleted(gfx::SwapResult result);
+ void OnGpuSwapBuffersCompleted(
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result,
+ const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac);
cc::OutputSurfaceClient* client_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698