Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: gpu/command_buffer/service/texture_manager.h

Issue 2826043002: Do not share FBOs/VAOs/Transform feedback objects across contexts (Closed)
Patch Set: added DeleteFramebuffers() expectation Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index f2cda9ecd9302cc55a87d909e4deacf7962dbe83..bc215ac941923f6b0a7caaedcca0c2317828424e 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -758,9 +758,8 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
ProgressReporter* progress_reporter);
~TextureManager() override;
- void set_framebuffer_manager(FramebufferManager* manager) {
- framebuffer_manager_ = manager;
- }
+ void AddFramebufferManager(FramebufferManager* framebuffer_manager);
+ void RemoveFramebufferManager(FramebufferManager* framebuffer_manager);
// Init the texture manager.
bool Initialize();
@@ -1192,7 +1191,7 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
scoped_refptr<FeatureInfo> feature_info_;
- FramebufferManager* framebuffer_manager_;
+ std::vector<FramebufferManager*> framebuffer_managers_;
// Info for each texture in the system.
typedef base::hash_map<GLuint, scoped_refptr<TextureRef> > TextureMap;

Powered by Google App Engine
This is Rietveld 408576698