electron_gpu_client.h 714 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2019 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
  5. #define ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
  6. #include "content/public/gpu/content_gpu_client.h"
  7. namespace electron {
  8. class ElectronGpuClient : public content::ContentGpuClient {
  9. public:
  10. ElectronGpuClient();
  11. // disable copy
  12. ElectronGpuClient(const ElectronGpuClient&) = delete;
  13. ElectronGpuClient& operator=(const ElectronGpuClient&) = delete;
  14. // content::ContentGpuClient:
  15. void PreCreateMessageLoop() override;
  16. };
  17. } // namespace electron
  18. #endif // ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_