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

Side by Side Diff: content/browser/aura/gpu_process_transport_factory.h

Issue 111063003: Aura: Don't create GL context for CreateSharedSurfaceHandle() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_
6 #define CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ 6 #define CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 private: 70 private:
71 struct PerCompositorData; 71 struct PerCompositorData;
72 72
73 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); 73 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor);
74 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> 74 scoped_ptr<WebGraphicsContext3DCommandBufferImpl>
75 CreateContextCommon(int surface_id); 75 CreateContextCommon(int surface_id);
76 76
77 void OnLostMainThreadSharedContextInsideCallback(); 77 void OnLostMainThreadSharedContextInsideCallback();
78 void OnLostMainThreadSharedContext(); 78 void OnLostMainThreadSharedContext();
79 void OnGpuChannelReady();
79 80
80 typedef std::map<ui::Compositor*, PerCompositorData*> PerCompositorDataMap; 81 typedef std::map<ui::Compositor*, PerCompositorData*> PerCompositorDataMap;
81 PerCompositorDataMap per_compositor_data_; 82 PerCompositorDataMap per_compositor_data_;
82 scoped_refptr<ContextProviderCommandBuffer> offscreen_compositor_contexts_; 83 scoped_refptr<ContextProviderCommandBuffer> offscreen_compositor_contexts_;
83 scoped_refptr<ContextProviderCommandBuffer> shared_main_thread_contexts_; 84 scoped_refptr<ContextProviderCommandBuffer> shared_main_thread_contexts_;
84 scoped_ptr<GLHelper> gl_helper_; 85 scoped_ptr<GLHelper> gl_helper_;
85 ObserverList<ImageTransportFactoryObserver> observer_list_; 86 ObserverList<ImageTransportFactoryObserver> observer_list_;
86 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 87 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
87 88
88 // The contents of this map and its methods may only be used on the compositor 89 // The contents of this map and its methods may only be used on the compositor
89 // thread. 90 // thread.
90 IDMap<BrowserCompositorOutputSurface> output_surface_map_; 91 IDMap<BrowserCompositorOutputSurface> output_surface_map_;
91 92
92 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; 93 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 95 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
95 }; 96 };
96 97
97 } // namespace content 98 } // namespace content
98 99
99 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ 100 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698