| Index: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
|
| index de6d5c82e871e0d7d510089d5f3fa163c9938213..c22727c3aaa6024cd00f77b1439f23b070846da4 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
|
| @@ -6,14 +6,15 @@
|
| #define CanvasSurfaceLayerBridge_h
|
|
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "cc/surfaces/surface_id.h"
|
| +#include "cc/surfaces/surface_reference_factory.h"
|
| #include "platform/PlatformExport.h"
|
| #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom-blink.h"
|
| #include <memory>
|
|
|
| namespace cc {
|
| class SurfaceLayer;
|
| -struct SurfaceSequence;
|
| } // namespace cc
|
|
|
| namespace blink {
|
| @@ -34,8 +35,11 @@ class PLATFORM_EXPORT CanvasSurfaceLayerBridge {
|
| private:
|
| scoped_refptr<cc::SurfaceLayer> m_surfaceLayer;
|
| std::unique_ptr<WebLayer> m_webLayer;
|
| - mojom::blink::OffscreenCanvasSurfacePtr m_service;
|
| + const mojom::blink::OffscreenCanvasSurfacePtr m_service;
|
| cc::SurfaceId m_surfaceId;
|
| + scoped_refptr<cc::SurfaceReferenceFactory> m_refFactory;
|
| +
|
| + base::WeakPtrFactory<CanvasSurfaceLayerBridge> m_weakFactory;
|
| };
|
|
|
| } // namespace blink
|
|
|