blob: 4b2d3329a6dda55a737ab9180185dadc3eada122 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/mediacapturefromelement/on_request_canvas_draw_listener.h"
#include "third_party/skia/include/core/SkImage.h"
namespace blink {
OnRequestCanvasDrawListener::OnRequestCanvasDrawListener(
std::unique_ptr<CanvasCaptureHandler> handler)
: AutoCanvasDrawListener(std::move(handler)) {}
OnRequestCanvasDrawListener::~OnRequestCanvasDrawListener() = default;
void OnRequestCanvasDrawListener::SendNewFrame(
sk_sp<SkImage> image,
base::WeakPtr<WebGraphicsContext3DProviderWrapper> context_provider) {
frame_capture_requested_ = false;
AutoCanvasDrawListener::SendNewFrame(image, context_provider);
}
void OnRequestCanvasDrawListener::Trace(blink::Visitor* visitor) {
AutoCanvasDrawListener::Trace(visitor);
}
} // namespace blink