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

Unified Diff: content/browser/renderer_host/offscreen_canvas_surface_impl.h

Issue 2479563005: Create manager to track OffscreenCanvasSurfaceImpl instances (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/offscreen_canvas_surface_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/offscreen_canvas_surface_impl.h
diff --git a/content/browser/renderer_host/offscreen_canvas_surface_impl.h b/content/browser/renderer_host/offscreen_canvas_surface_impl.h
index 6ab9214688f598d4f8d5cb1e798b6c2972d50b24..ad14ad4082928e4b8dc55d0f941c29338ad0ce6e 100644
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.h
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.h
@@ -13,7 +13,8 @@
namespace content {
-class OffscreenCanvasSurfaceImpl : public blink::mojom::OffscreenCanvasSurface {
+class CONTENT_EXPORT OffscreenCanvasSurfaceImpl
+ : public blink::mojom::OffscreenCanvasSurface {
public:
OffscreenCanvasSurfaceImpl();
~OffscreenCanvasSurfaceImpl() override;
@@ -26,10 +27,12 @@ class OffscreenCanvasSurfaceImpl : public blink::mojom::OffscreenCanvasSurface {
const cc::SurfaceSequence& sequence) override;
void Satisfy(const cc::SurfaceSequence& sequence) override;
+ const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; }
+
private:
// Surface-related state
std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_;
- cc::SurfaceId surface_id_;
+ cc::FrameSinkId frame_sink_id_;
DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl);
};
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/offscreen_canvas_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698