2018-09-26 13:25:58 +02:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license
|
|
|
|
// that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef CEF_TESTS_CEFCLIENT_BROWSER_OSR_RENDERER_SETTINGS_H_
|
|
|
|
#define CEF_TESTS_CEFCLIENT_BROWSER_OSR_RENDERER_SETTINGS_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "include/internal/cef_types.h"
|
|
|
|
|
|
|
|
namespace client {
|
|
|
|
|
|
|
|
struct OsrRendererSettings {
|
2024-01-20 03:22:56 +01:00
|
|
|
OsrRendererSettings() = default;
|
2018-09-26 13:25:58 +02:00
|
|
|
|
|
|
|
// If true draw a border around update rectangles.
|
2024-01-20 03:22:56 +01:00
|
|
|
bool show_update_rect = false;
|
2018-09-26 13:25:58 +02:00
|
|
|
|
|
|
|
// Background color. Enables transparency if the alpha component is 0.
|
2024-01-20 03:22:56 +01:00
|
|
|
cef_color_t background_color = 0;
|
2018-09-26 13:25:58 +02:00
|
|
|
|
|
|
|
// Render using shared textures. Supported on Windows only via D3D11.
|
2024-01-20 03:22:56 +01:00
|
|
|
bool shared_texture_enabled = false;
|
2018-09-26 13:25:58 +02:00
|
|
|
|
|
|
|
// Client implements a BeginFrame timer by calling
|
|
|
|
// CefBrowserHost::SendExternalBeginFrame at the specified frame rate.
|
2024-01-20 03:22:56 +01:00
|
|
|
bool external_begin_frame_enabled = false;
|
|
|
|
int begin_frame_rate = 0;
|
2018-09-26 13:25:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace client
|
|
|
|
|
|
|
|
#endif // CEF_TESTS_CEFCLIENT_BROWSER_OSR_RENDERER_SETTINGS_H_
|