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

Unified Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: rebase Created 4 years 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: 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
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698