// 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. #pragma once #include #include "include/internal/cef_types.h"" struct OsrRendererSettings { enum class OsrRendererType : unsigned char { Unknown = 0, OpenGL = 1, D3D11 = 2, Navtive = 3 }; OsrRendererSettings() : show_update_rect(false), background_color(0), render_type(OsrRendererType::Unknown), external_begin_frame_enabled(false), begin_frame_rate(0) {} // If true draw a border around update rectangles. bool show_update_rect; // Background color. Enables transparency if the alpha component is 0. cef_color_t background_color; // Render using shared textures. Supported on Windows only via D3D11. // bool shared_texture_enabled; OsrRendererType render_type; // Client implements a BeginFrame timer by calling // CefBrowserHost::SendExternalBeginFrame at the specified frame rate. bool external_begin_frame_enabled; int begin_frame_rate; std::string background_image; };