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

Unified Diff: services/ui/demo/bitmap_uploader.cc

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: feedback 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
« no previous file with comments | « gpu/ipc/client/gpu_in_process_context_tests.cc ('k') | services/ui/public/cpp/context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/bitmap_uploader.cc
diff --git a/services/ui/demo/bitmap_uploader.cc b/services/ui/demo/bitmap_uploader.cc
index 34c869aab6cc07b2d0ba48713f64040d0eb29c45..cbe708491c674d53a51841b1d1781cfc6814eeab 100644
--- a/services/ui/demo/bitmap_uploader.cc
+++ b/services/ui/demo/bitmap_uploader.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/callback.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "cc/ipc/compositor_frame.mojom.h"
#include "cc/quads/render_pass.h"
#include "cc/quads/solid_color_draw_quad.h"
@@ -43,7 +44,8 @@ void BitmapUploader::Init(ui::GpuService* gpu_service) {
surface_->set_client(this);
gles2_context_ = GLES2Context::CreateOffscreenContext(
- gpu_service->EstablishGpuChannelSync());
+ gpu_service->EstablishGpuChannelSync(),
+ base::ThreadTaskRunnerHandle::Get());
}
BitmapUploader::~BitmapUploader() {}
« no previous file with comments | « gpu/ipc/client/gpu_in_process_context_tests.cc ('k') | services/ui/public/cpp/context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698