cast_content_gpu_client.h 956 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef CHROMECAST_GPU_CAST_CONTENT_GPU_CLIENT_H_
  5. #define CHROMECAST_GPU_CAST_CONTENT_GPU_CLIENT_H_
  6. #include <memory>
  7. #include "content/public/gpu/content_gpu_client.h"
  8. namespace chromecast {
  9. namespace shell {
  10. class CastContentGpuClient : public content::ContentGpuClient {
  11. public:
  12. static std::unique_ptr<CastContentGpuClient> Create();
  13. CastContentGpuClient(const CastContentGpuClient&) = delete;
  14. CastContentGpuClient& operator=(const CastContentGpuClient&) = delete;
  15. ~CastContentGpuClient() override;
  16. // content::ContentGpuClient:
  17. void PostCompositorThreadCreated(
  18. base::SingleThreadTaskRunner* task_runner) override;
  19. protected:
  20. CastContentGpuClient();
  21. };
  22. } // namespace shell
  23. } // namespace chromecast
  24. #endif // CHROMECAST_GPU_CAST_CONTENT_GPU_CLIENT_H_