| Index: components/mus/gles2/command_buffer_impl.h
|
| diff --git a/components/mus/gles2/command_buffer_impl.h b/components/mus/gles2/command_buffer_impl.h
|
| index 6bdbef88a8541c05f3577c5a7165abfff6642810..1bcc429f67e8bef6dded261d545f0c0f32c1055d 100644
|
| --- a/components/mus/gles2/command_buffer_impl.h
|
| +++ b/components/mus/gles2/command_buffer_impl.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/single_thread_task_runner.h"
|
| +#include "components/mus/gles2/command_buffer_driver.h"
|
| #include "components/mus/public/interfaces/command_buffer.mojom.h"
|
| #include "gpu/command_buffer/common/command_buffer.h"
|
| #include "mojo/public/cpp/bindings/binding.h"
|
| @@ -24,16 +25,21 @@ class GpuState;
|
| // so that we can insert sync points without blocking on the GL driver. It
|
| // forwards most method calls to the CommandBufferDriver, which runs on the
|
| // same thread as the native viewport.
|
| -class CommandBufferImpl : public mojom::CommandBuffer {
|
| +class CommandBufferImpl : public mojom::CommandBuffer,
|
| + public CommandBufferDriver::Client {
|
| public:
|
| CommandBufferImpl(mojo::InterfaceRequest<CommandBuffer> request,
|
| scoped_refptr<GpuState> gpu_state);
|
| - void DidLoseContext(uint32_t reason);
|
|
|
| private:
|
| class CommandBufferDriverClientImpl;
|
| ~CommandBufferImpl() override;
|
|
|
| + // CommandBufferDriver::Client. All called on the GPU thread.
|
| + void DidLoseContext(uint32_t reason) override;
|
| + void UpdateVSyncParameters(int64_t timebase, int64_t interval) override;
|
| + void OnGpuCompletedSwapBuffers(gfx::SwapResult result) override;
|
| +
|
| // mojom::CommandBuffer:
|
| void Initialize(
|
| mojom::CommandBufferClientPtr client,
|
|
|