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

Side by Side Diff: ui/aura/local/layer_tree_frame_sink_local.cc

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Address Rob's comments 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/web/WebWidget.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/local/layer_tree_frame_sink_local.h" 5 #include "ui/aura/local/layer_tree_frame_sink_local.h"
6 6
7 #include "cc/output/layer_tree_frame_sink_client.h" 7 #include "cc/output/layer_tree_frame_sink_client.h"
8 #include "components/viz/host/host_frame_sink_manager.h" 8 #include "components/viz/host/host_frame_sink_manager.h"
9 #include "components/viz/service/frame_sinks/compositor_frame_sink_support.h" 9 #include "components/viz/service/frame_sinks/compositor_frame_sink_support.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 15 matching lines...) Expand all
26 LayerTreeFrameSinkLocal::~LayerTreeFrameSinkLocal() {} 26 LayerTreeFrameSinkLocal::~LayerTreeFrameSinkLocal() {}
27 27
28 bool LayerTreeFrameSinkLocal::BindToClient( 28 bool LayerTreeFrameSinkLocal::BindToClient(
29 cc::LayerTreeFrameSinkClient* client) { 29 cc::LayerTreeFrameSinkClient* client) {
30 if (!cc::LayerTreeFrameSink::BindToClient(client)) 30 if (!cc::LayerTreeFrameSink::BindToClient(client))
31 return false; 31 return false;
32 DCHECK(!thread_checker_); 32 DCHECK(!thread_checker_);
33 thread_checker_ = base::MakeUnique<base::ThreadChecker>(); 33 thread_checker_ = base::MakeUnique<base::ThreadChecker>();
34 34
35 support_ = host_frame_sink_manager_->CreateCompositorFrameSinkSupport( 35 support_ = host_frame_sink_manager_->CreateCompositorFrameSinkSupport(
36 this, frame_sink_id_, false /* is_root */, 36 this, nullptr, frame_sink_id_, false /* is_root */,
37 true /* handles_frame_sink_id_invalidation */, 37 true /* handles_frame_sink_id_invalidation */,
38 true /* needs_sync_points */); 38 true /* needs_sync_points */);
39 begin_frame_source_ = base::MakeUnique<viz::ExternalBeginFrameSource>(this); 39 begin_frame_source_ = base::MakeUnique<viz::ExternalBeginFrameSource>(this);
40 client->SetBeginFrameSource(begin_frame_source_.get()); 40 client->SetBeginFrameSource(begin_frame_source_.get());
41 return true; 41 return true;
42 } 42 }
43 43
44 void LayerTreeFrameSinkLocal::SetSurfaceChangedCallback( 44 void LayerTreeFrameSinkLocal::SetSurfaceChangedCallback(
45 const SurfaceChangedCallback& callback) { 45 const SurfaceChangedCallback& callback) {
46 DCHECK(!surface_changed_callback_); 46 DCHECK(!surface_changed_callback_);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 client_->ReclaimResources(resources); 125 client_->ReclaimResources(resources);
126 } 126 }
127 127
128 void LayerTreeFrameSinkLocal::OnNeedsBeginFrames(bool needs_begin_frames) { 128 void LayerTreeFrameSinkLocal::OnNeedsBeginFrames(bool needs_begin_frames) {
129 DCHECK(thread_checker_); 129 DCHECK(thread_checker_);
130 DCHECK(thread_checker_->CalledOnValidThread()); 130 DCHECK(thread_checker_->CalledOnValidThread());
131 support_->SetNeedsBeginFrame(needs_begin_frames); 131 support_->SetNeedsBeginFrame(needs_begin_frames);
132 } 132 }
133 133
134 } // namespace aura 134 } // namespace aura
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebWidget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698