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

Unified Diff: cc/surfaces/display.cc

Issue 485043003: cc: Use correct message loop proxy in BlockingTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Help gn deal with it. Created 6 years, 4 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: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 70367e4bcfd625c4836bf6d4f87fb45fca3249b8..51f3084831f93fc838224403ef93a2312de63f69 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -15,13 +15,18 @@
#include "cc/surfaces/surface.h"
#include "cc/surfaces/surface_aggregator.h"
#include "cc/surfaces/surface_manager.h"
+#include "cc/trees/blocking_task_runner.h"
namespace cc {
Display::Display(DisplayClient* client,
SurfaceManager* manager,
SharedBitmapManager* bitmap_manager)
- : client_(client), manager_(manager), bitmap_manager_(bitmap_manager) {
+ : client_(client),
+ manager_(manager),
+ bitmap_manager_(bitmap_manager),
+ blocking_main_thread_task_runner_(
+ BlockingTaskRunner::Create(base::MessageLoopProxy::current())) {
manager_->AddObserver(this);
}
@@ -49,6 +54,7 @@ void Display::InitializeOutputSurface() {
scoped_ptr<ResourceProvider> resource_provider =
ResourceProvider::Create(output_surface.get(),
bitmap_manager_,
+ blocking_main_thread_task_runner_.get(),
highp_threshold_min,
use_rgba_4444_texture_format,
id_allocation_chunk_size,

Powered by Google App Engine
This is Rietveld 408576698