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

Unified Diff: services/ui/public/cpp/gles2_context.h

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: fix unittests Created 4 years, 3 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: services/ui/public/cpp/gles2_context.h
diff --git a/services/ui/public/cpp/gles2_context.h b/services/ui/public/cpp/gles2_context.h
index 5ff9da0c19ce14a9b3b07aa6491ca70866a1939f..2cfedc258e22d0a6a955cec6da97fe7f53cc204c 100644
--- a/services/ui/public/cpp/gles2_context.h
+++ b/services/ui/public/cpp/gles2_context.h
@@ -36,11 +36,13 @@ class GLES2Context {
gpu::ContextSupport* context_support() const { return implementation_.get(); }
static std::unique_ptr<GLES2Context> CreateOffscreenContext(
- scoped_refptr<gpu::GpuChannelHost> gpu_channel_host);
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner);
private:
GLES2Context();
- bool Initialize(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host);
+ bool Initialize(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner);
std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;

Powered by Google App Engine
This is Rietveld 408576698