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.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|
2019-04-30 16:45:48 +00:00
|
|
|
|
|
|
|
#include "content/public/gpu/content_gpu_client.h"
|
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
|
|
|
class ElectronGpuClient : public content::ContentGpuClient {
|
|
|
|
public:
|
|
|
|
ElectronGpuClient();
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace electron
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_ELECTRON_GPU_CLIENT_H_
|