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

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

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 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/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 6f52832a9e9bffaebc10e224d3d7c88ddcf5017f..dcc9675d8b5480bf05ea10f93ec0456dee5838f4 100644
--- a/content/browser/compositor/browser_compositor_output_surface.h
+++ b/content/browser/compositor/browser_compositor_output_surface.h
@@ -25,6 +25,10 @@ namespace gfx {
enum class SwapResult;
}
+namespace gpu {
+struct GpuProcessHostedCALayerTreeParamsMac;
+}
+
namespace content {
class ContextProviderCommandBuffer;
class ReflectorImpl;
@@ -57,9 +61,14 @@ class CONTENT_EXPORT BrowserCompositorOutputSurface
virtual base::Closure CreateCompositionStartedCallback();
// Called when a swap completion is sent from the GPU process.
+ // The argument |params_mac| is used to communicate parameters needed on Mac
+ // to display the CALayer for the swap in the browser process.
+ // TODO(ccameron): Remove |params_mac| when the CALayer tree is hosted in the
+ // browser process.
virtual void OnGpuSwapBuffersCompleted(
const std::vector<ui::LatencyInfo>& latency_info,
- gfx::SwapResult result) = 0;
+ gfx::SwapResult result,
+ const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) = 0;
#if defined(OS_MACOSX)
virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0;
« no previous file with comments | « components/mus/gpu/gpu_service_mus.cc ('k') | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698