From 05395a3a1706bf0e901a2bfd4b840022e58ce45d Mon Sep 17 00:00:00 2001 From: mikejurka Date: Thu, 26 Jul 2018 21:46:07 -0700 Subject: [PATCH] [scenic] Expose compositor context from rasterizer. (flutter/engine#5739) Needed by code to support Scenic's new API for views. --- engine/src/flutter/shell/common/rasterizer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/flutter/shell/common/rasterizer.h b/engine/src/flutter/shell/common/rasterizer.h index 3327d5a23a..1d3c03d895 100644 --- a/engine/src/flutter/shell/common/rasterizer.h +++ b/engine/src/flutter/shell/common/rasterizer.h @@ -63,6 +63,10 @@ class Rasterizer final { // the surface on the GPU task runner. void SetNextFrameCallback(fml::closure callback); + flow::CompositorContext* compositor_context() { + return compositor_context_.get(); + } + private: blink::TaskRunners task_runners_; std::unique_ptr surface_;