| Index: ui/compositor/test/in_process_context_factory.cc
|
| diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
|
| index e68752f8f9c473c02d83e23eb81cbeedbf48377c..cc4bc2921238191e7cd9b4dad66caa54c22968f2 100644
|
| --- a/ui/compositor/test/in_process_context_factory.cc
|
| +++ b/ui/compositor/test/in_process_context_factory.cc
|
| @@ -50,8 +50,8 @@ class FakeReflector : public Reflector {
|
| class DirectOutputSurface : public cc::OutputSurface {
|
| public:
|
| DirectOutputSurface(
|
| - scoped_refptr<cc::ContextProvider> context_provider,
|
| - scoped_refptr<cc::ContextProvider> worker_context_provider)
|
| + scoped_refptr<InProcessContextProvider> context_provider,
|
| + scoped_refptr<InProcessContextProvider> worker_context_provider)
|
| : cc::OutputSurface(std::move(context_provider),
|
| std::move(worker_context_provider),
|
| nullptr),
|
| @@ -59,7 +59,7 @@ class DirectOutputSurface : public cc::OutputSurface {
|
|
|
| ~DirectOutputSurface() override {}
|
|
|
| - // cc::OutputSurface implementation
|
| + // cc::OutputSurface implementation.
|
| bool BindToClient(cc::OutputSurfaceClient* client) override {
|
| if (!OutputSurface::BindToClient(client))
|
| return false;
|
| @@ -87,6 +87,10 @@ class DirectOutputSurface : public cc::OutputSurface {
|
| weak_ptr_factory_.GetWeakPtr()));
|
| client_->DidSwapBuffers();
|
| }
|
| + uint32_t GetFramebufferCopyTextureFormat() override {
|
| + auto* gl = static_cast<InProcessContextProvider*>(context_provider());
|
| + return gl->GetCopyTextureInternalFormat();
|
| + }
|
|
|
| private:
|
| base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
|
|
|