2019-04-30 16:45:48 +00:00
|
|
|
// Copyright (c) 2019 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
#ifndef SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|
|
|
|
#define SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|
2019-04-30 16:45:48 +00:00
|
|
|
|
|
|
|
#include "content/public/gpu/content_gpu_client.h"
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2019-04-30 16:45:48 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
class ElectronGpuClient : public content::ContentGpuClient {
|
2019-04-30 16:45:48 +00:00
|
|
|
public:
|
2020-02-04 20:19:40 +00:00
|
|
|
ElectronGpuClient();
|
2019-04-30 16:45:48 +00:00
|
|
|
|
2021-11-03 11:41:45 +00:00
|
|
|
// disable copy
|
|
|
|
ElectronGpuClient(const ElectronGpuClient&) = delete;
|
|
|
|
ElectronGpuClient& operator=(const ElectronGpuClient&) = delete;
|
|
|
|
|
2019-04-30 16:45:48 +00:00
|
|
|
// content::ContentGpuClient:
|
|
|
|
void PreCreateMessageLoop() override;
|
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2019-04-30 16:45:48 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
#endif // SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|