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

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

Issue 2042553002: Mac CoreAnimation compositor in the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lock_directly
Patch Set: Created 4 years, 6 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 | « cc/output/output_surface.h ('k') | content/browser/compositor/gpu_output_surface_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_output_surface_mac.h
diff --git a/content/browser/compositor/gpu_output_surface_mac.h b/content/browser/compositor/gpu_output_surface_mac.h
index f5a65473a996df1569ad6797f420aa9d6eabb555..17820037306174ae132ab5ff59952e5867ecbdea 100644
--- a/content/browser/compositor/gpu_output_surface_mac.h
+++ b/content/browser/compositor/gpu_output_surface_mac.h
@@ -7,6 +7,10 @@
#include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h"
+namespace ui {
+class CALayerTreeCoordinator;
+}
+
namespace content {
class GpuOutputSurfaceMac
@@ -23,8 +27,10 @@ class GpuOutputSurfaceMac
~GpuOutputSurfaceMac() override;
// cc::OutputSurface implementation.
+ void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override;
void SwapBuffers(cc::CompositorFrame* frame) override;
bool SurfaceIsSuspendForRecycle() const override;
+ void ProcessCALayers(const cc::CALayerOverlayList& ca_layer_overlays) override;
// BrowserCompositorOutputSurface implementation.
void OnGpuSwapBuffersCompleted(
@@ -39,6 +45,8 @@ class GpuOutputSurfaceMac
struct RemoteLayers;
std::unique_ptr<RemoteLayers> remote_layers_;
+ std::unique_ptr<ui::CALayerTreeCoordinator> ca_layer_tree_coordinator_;
+
enum ShouldShowFramesState {
// Frames that come from the GPU process should appear on-screen.
SHOULD_SHOW_FRAMES,
« no previous file with comments | « cc/output/output_surface.h ('k') | content/browser/compositor/gpu_output_surface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698