2019-04-30 19:45:48 +03: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.
|
|
|
|
|
2021-11-22 10:34:31 +03:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|
2019-04-30 19:45:48 +03:00
|
|
|
|
|
|
|
#include "content/public/gpu/content_gpu_client.h"
|
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
|
|
|
class ElectronGpuClient : public content::ContentGpuClient {
|
|
|
|
public:
|
|
|
|
ElectronGpuClient();
|
|
|
|
|
2021-11-03 14:41:45 +03:00
|
|
|
// disable copy
|
|
|
|
ElectronGpuClient(const ElectronGpuClient&) = delete;
|
|
|
|
ElectronGpuClient& operator=(const ElectronGpuClient&) = delete;
|
|
|
|
|
2019-04-30 19:45:48 +03:00
|
|
|
// content::ContentGpuClient:
|
|
|
|
void PreCreateMessageLoop() override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace electron
|
|
|
|
|
2021-11-22 10:34:31 +03:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|