Windows: cefclient: Create a new D3D11 device for each browser (issue #2538)

This fixes a texture resizing issue when creating multiple windows with OSR
and shared textures enabled.
This commit is contained in:
Marshall Greenblatt
2018-11-15 15:42:50 -05:00
parent 3e06fa8271
commit 91a1286d52
4 changed files with 2 additions and 27 deletions

View File

@@ -34,10 +34,6 @@ class MainContextImpl : public MainContext {
void PopulateOsrSettings(OsrRendererSettings* settings) OVERRIDE;
RootWindowManager* GetRootWindowManager() OVERRIDE;
#if defined(OS_WIN)
std::shared_ptr<d3d11::Device> GetD3D11Device() OVERRIDE;
#endif
// Initialize CEF and associated main context state. This method must be
// called on the same thread that created this object.
bool Initialize(const CefMainArgs& args,
@@ -79,7 +75,6 @@ class MainContextImpl : public MainContext {
#if defined(OS_WIN)
bool shared_texture_enabled_;
std::shared_ptr<d3d11::Device> d3d11_device_;
#endif
bool external_begin_frame_enabled_;