1 // Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license 3 // that can be found in the LICENSE file. 4 5 #ifndef CEF_TESTS_CEFCLIENT_BROWSER_OSR_RENDERER_SETTINGS_H_ 6 #define CEF_TESTS_CEFCLIENT_BROWSER_OSR_RENDERER_SETTINGS_H_ 7 #pragma once 8 9 #include "include/internal/cef_types.h" 10 11 namespace client { 12 13 struct OsrRendererSettings { OsrRendererSettingsOsrRendererSettings14 OsrRendererSettings() 15 : show_update_rect(false), 16 background_color(0), 17 shared_texture_enabled(false), 18 external_begin_frame_enabled(false), 19 begin_frame_rate(0) {} 20 21 // If true draw a border around update rectangles. 22 bool show_update_rect; 23 24 // Background color. Enables transparency if the alpha component is 0. 25 cef_color_t background_color; 26 27 // Render using shared textures. Supported on Windows only via D3D11. 28 bool shared_texture_enabled; 29 30 // Client implements a BeginFrame timer by calling 31 // CefBrowserHost::SendExternalBeginFrame at the specified frame rate. 32 bool external_begin_frame_enabled; 33 int begin_frame_rate; 34 }; 35 36 } // namespace client 37 38 #endif // CEF_TESTS_CEFCLIENT_BROWSER_OSR_RENDERER_SETTINGS_H_ 39