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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.h

Issue 648413004: Make browser GPU channel creation async. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.h
diff --git a/content/browser/compositor/gpu_process_transport_factory.h b/content/browser/compositor/gpu_process_transport_factory.h
index cdee6c01e05db8078bc5d79882113f1df30f91da..1d62703317dbbc549b36a35e6f85fbe187853631 100644
--- a/content/browser/compositor/gpu_process_transport_factory.h
+++ b/content/browser/compositor/gpu_process_transport_factory.h
@@ -13,6 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "content/browser/compositor/image_transport_factory.h"
+#include "content/common/gpu/client/gpu_channel_host.h"
#include "ui/compositor/compositor.h"
namespace base {
@@ -43,9 +44,8 @@ class GpuProcessTransportFactory
CreateOffscreenCommandBufferContext();
// ui::ContextFactory implementation.
- scoped_ptr<cc::OutputSurface> CreateOutputSurface(
- ui::Compositor* compositor,
- bool software_fallback) override;
+ void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor,
+ bool software_fallback) override;
scoped_refptr<ui::Reflector> CreateReflector(ui::Compositor* source,
ui::Layer* target) override;
void RemoveReflector(scoped_refptr<ui::Reflector> reflector) override;
@@ -72,8 +72,11 @@ class GpuProcessTransportFactory
struct PerCompositorData;
PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor);
- scoped_ptr<WebGraphicsContext3DCommandBufferImpl>
- CreateContextCommon(int surface_id);
+ void EstablishedGpuChannel(base::WeakPtr<ui::Compositor> compositor,
+ bool create_software_renderer);
+ scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateContextCommon(
+ scoped_refptr<GpuChannelHost> gpu_channel_host,
+ int surface_id);
void OnLostMainThreadSharedContextInsideCallback();
void OnLostMainThreadSharedContext();
« no previous file with comments | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698