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 368603123c0eeeb61f49de798b07974eb8a26508..6ab9214688f598d4f8d5cb1e798b6c2972d50b24 100644 |
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.h |
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.h |
@@ -5,8 +5,6 @@ |
#ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_ |
#define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_ |
-#include "cc/surfaces/surface_factory.h" |
-#include "cc/surfaces/surface_factory_client.h" |
#include "cc/surfaces/surface_id.h" |
#include "cc/surfaces/surface_id_allocator.h" |
#include "mojo/public/cpp/bindings/interface_request.h" |
@@ -15,8 +13,7 @@ |
namespace content { |
-class OffscreenCanvasSurfaceImpl : public blink::mojom::OffscreenCanvasSurface, |
- public cc::SurfaceFactoryClient { |
+class OffscreenCanvasSurfaceImpl : public blink::mojom::OffscreenCanvasSurface { |
public: |
OffscreenCanvasSurfaceImpl(); |
~OffscreenCanvasSurfaceImpl() override; |
@@ -25,22 +22,14 @@ class OffscreenCanvasSurfaceImpl : public blink::mojom::OffscreenCanvasSurface, |
// blink::mojom::OffscreenCanvasSurface implementation. |
void GetSurfaceId(const GetSurfaceIdCallback& callback) override; |
- void RequestSurfaceCreation(const cc::SurfaceId& surface_id) override; |
void Require(const cc::SurfaceId& surface_id, |
const cc::SurfaceSequence& sequence) override; |
void Satisfy(const cc::SurfaceSequence& sequence) override; |
- // cc::SurfaceFactoryClient implementation. |
- void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
- void WillDrawSurface(const cc::SurfaceId& id, |
- const gfx::Rect& damage_rect) override; |
- void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
- |
private: |
// Surface-related state |
std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; |
cc::SurfaceId surface_id_; |
- std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl); |
}; |