Commit bd0ef9e5 authored by Chris Mumford's avatar Chris Mumford Committed by Commit Bot

Have SetLostContextCallback use RepeatingClosure.

WebGraphicsContext3DProvider::SetLostContextCallback already
exlicitly uses base::RepeatingClosure so converting two overrides
to do the same.

Bug: 1007835
Change-Id: Id83a1067d9c555700b630deb75fe2b3d13c93d0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1988487Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
Commit-Queue: Chris Mumford <cmumford@google.com>
Cr-Commit-Position: refs/heads/master@{#728663}
parent b59edaa6
......@@ -61,7 +61,7 @@ class WebGraphicsContext3DProviderForTests
return webgl_preferences_;
}
viz::GLHelper* GetGLHelper() override { return nullptr; }
void SetLostContextCallback(base::Closure) override {}
void SetLostContextCallback(base::RepeatingClosure) override {}
void SetErrorMessageCallback(
base::RepeatingCallback<void(const char*, int32_t id)>) override {}
cc::ImageDecodeCache* ImageDecodeCache(SkColorType color_type) override {
......
......@@ -75,7 +75,7 @@ class FakeWebGraphicsContext3DProvider : public WebGraphicsContext3DProvider {
gpu::webgpu::WebGPUInterface* WebGPUInterface() override { return nullptr; }
bool BindToCurrentThread() override { return false; }
void SetLostContextCallback(base::Closure) override {}
void SetLostContextCallback(base::RepeatingClosure) override {}
void SetErrorMessageCallback(
base::RepeatingCallback<void(const char*, int32_t id)>) override {}
cc::ImageDecodeCache* ImageDecodeCache(SkColorType color_type) override {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment