mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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_;
|
||||
|
Reference in New Issue
Block a user