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

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

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: up 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..c55bd1b4a2ace185649b16f2e80c55c69c3aa04a 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h
@@ -7,13 +7,13 @@
#include "base/memory/ref_counted.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 {
@@ -28,14 +28,12 @@ class PLATFORM_EXPORT CanvasSurfaceLayerBridge {
WebLayer* getWebLayer() const { return m_webLayer.get(); }
const cc::SurfaceId& getSurfaceId() const { return m_surfaceId; }
- void satisfyCallback(const cc::SurfaceSequence&);
- void requireCallback(const cc::SurfaceId&, const cc::SurfaceSequence&);
-
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;
+ const scoped_refptr<cc::SurfaceReferenceFactory> m_refFactory;
Fady Samuel 2016/12/13 22:55:06 Weird to make this const.
Saman Sami 2016/12/14 17:50:02 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698