| Index: content/browser/renderer_host/offscreen_canvas_surface_impl.cc
|
| diff --git a/content/browser/renderer_host/offscreen_canvas_surface_impl.cc b/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
|
| index a3ed311c56208e9f6d41b047c5e5050c91db9f16..dd9c023931b3359b9b16cd51b1c7afca1f495106 100644
|
| --- a/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
|
| +++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
|
| @@ -23,19 +23,9 @@ OffscreenCanvasSurfaceImpl::OffscreenCanvasSurfaceImpl(
|
| mojo::InterfaceRequest<blink::mojom::OffscreenCanvasSurface> request)
|
| : id_allocator_(new cc::SurfaceIdAllocator(AllocateSurfaceClientId())),
|
| binding_(this, std::move(request)) {
|
| - GetSurfaceManager()->RegisterSurfaceClientId(id_allocator_->client_id());
|
| }
|
|
|
| OffscreenCanvasSurfaceImpl::~OffscreenCanvasSurfaceImpl() {
|
| - if (!GetSurfaceManager()) {
|
| - // Inform both members that SurfaceManager's no longer alive to
|
| - // avoid their destruction errors.
|
| - if (surface_factory_)
|
| - surface_factory_->DidDestroySurfaceManager();
|
| - } else {
|
| - GetSurfaceManager()->InvalidateSurfaceClientId(id_allocator_->client_id());
|
| - }
|
| - surface_factory_->Destroy(surface_id_);
|
| }
|
|
|
| void OffscreenCanvasSurfaceImpl::GetSurfaceId(
|
| @@ -47,15 +37,6 @@ void OffscreenCanvasSurfaceImpl::GetSurfaceId(
|
| callback.Run(surface_id_);
|
| }
|
|
|
| -void OffscreenCanvasSurfaceImpl::RequestSurfaceCreation(
|
| - const cc::SurfaceId& surface_id) {
|
| - cc::SurfaceManager* manager = GetSurfaceManager();
|
| - if (!surface_factory_) {
|
| - surface_factory_ = base::MakeUnique<cc::SurfaceFactory>(manager, this);
|
| - }
|
| - surface_factory_->Create(surface_id);
|
| -}
|
| -
|
| void OffscreenCanvasSurfaceImpl::Require(const cc::SurfaceId& surface_id,
|
| const cc::SurfaceSequence& sequence) {
|
| cc::SurfaceManager* manager = GetSurfaceManager();
|
| @@ -74,16 +55,4 @@ void OffscreenCanvasSurfaceImpl::Satisfy(const cc::SurfaceSequence& sequence) {
|
| manager->DidSatisfySequences(sequence.client_id, &sequences);
|
| }
|
|
|
| -// TODO(619136): Implement cc::SurfaceFactoryClient functions for resources
|
| -// return.
|
| -void OffscreenCanvasSurfaceImpl::ReturnResources(
|
| - const cc::ReturnedResourceArray& resources) {}
|
| -
|
| -void OffscreenCanvasSurfaceImpl::WillDrawSurface(const cc::SurfaceId& id,
|
| - const gfx::Rect& damage_rect) {
|
| -}
|
| -
|
| -void OffscreenCanvasSurfaceImpl::SetBeginFrameSource(
|
| - cc::BeginFrameSource* begin_frame_source) {}
|
| -
|
| } // namespace content
|
|
|