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

Unified Diff: ui/aura/window_tree_host.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 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
« no previous file with comments | « content/browser/renderer_host/browser_compositor_view_mac.mm ('k') | ui/compositor/canvas_painter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index d9ecc09888f6e51386ad4220e646d2ca08a5a93c..a1f86306c1295f0fae89526210b6da59d23674e6 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -20,6 +20,7 @@
#include "ui/base/ime/input_method_factory.h"
#include "ui/base/layout.h"
#include "ui/base/view_prop.h"
+#include "ui/compositor/compositor_switches.h"
#include "ui/compositor/dip_util.h"
#include "ui/compositor/layer.h"
#include "ui/display/display.h"
@@ -270,7 +271,8 @@ void WindowTreeHost::CreateCompositor(const viz::FrameSinkId& frame_sink_id) {
? frame_sink_id
: context_factory_private->AllocateFrameSinkId(),
context_factory, context_factory_private,
- base::ThreadTaskRunnerHandle::Get(), enable_surface_synchronization));
+ base::ThreadTaskRunnerHandle::Get(), enable_surface_synchronization,
+ ui::IsPixelCanvasRecordingEnabled()));
if (!dispatcher()) {
window()->Init(ui::LAYER_NOT_DRAWN);
window()->set_host(this);
« no previous file with comments | « content/browser/renderer_host/browser_compositor_view_mac.mm ('k') | ui/compositor/canvas_painter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698