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 0a5bc53b4ceb073accfb816cbc59a0cfcac8d466..47642dd4993fdb7cec4f3460ea0fa9eddd84c087 100644 |
--- a/ui/compositor/test/in_process_context_factory.cc |
+++ b/ui/compositor/test/in_process_context_factory.cc |
@@ -56,8 +56,8 @@ class DirectOutputSurface : public cc::OutputSurface { |
~DirectOutputSurface() override {} |
// cc::OutputSurface implementation. |
- bool BindToClient(cc::OutputSurfaceClient* client) override { |
- return OutputSurface::BindToClient(client); |
+ void BindToClient(cc::OutputSurfaceClient* client) override { |
+ client_ = client; |
} |
void EnsureBackbuffer() override {} |
void DiscardBackbuffer() override {} |
@@ -106,6 +106,7 @@ class DirectOutputSurface : public cc::OutputSurface { |
private: |
void OnSwapBuffersComplete() { client_->DidReceiveSwapBuffersAck(); } |
+ cc::OutputSurfaceClient* client_ = nullptr; |
base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(DirectOutputSurface); |