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

Side by Side Diff: cc/layers/surface_layer.cc

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 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 | « cc/ipc/typemaps.gni ('k') | cc/surfaces/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "cc/layers/surface_layer.h" 5 #include "cc/layers/surface_layer.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
11 #include "cc/layers/surface_layer_impl.h" 11 #include "cc/layers/surface_layer_impl.h"
12 #include "cc/output/swap_promise.h" 12 #include "cc/output/swap_promise.h"
13 #include "cc/surfaces/surface_sequence_generator.h"
13 #include "cc/trees/layer_tree_host.h" 14 #include "cc/trees/layer_tree_host.h"
14 #include "cc/trees/surface_sequence_generator.h"
15 #include "cc/trees/swap_promise_manager.h" 15 #include "cc/trees/swap_promise_manager.h"
16 16
17 namespace cc { 17 namespace cc {
18 18
19 class SatisfySwapPromise : public SwapPromise { 19 class SatisfySwapPromise : public SwapPromise {
20 public: 20 public:
21 SatisfySwapPromise(SurfaceSequence sequence, 21 SatisfySwapPromise(SurfaceSequence sequence,
22 const SurfaceLayer::SatisfyCallback& satisfy_callback) 22 const SurfaceLayer::SatisfyCallback& satisfy_callback)
23 : sequence_(sequence), satisfy_callback_(satisfy_callback) {} 23 : sequence_(sequence), satisfy_callback_(satisfy_callback) {}
24 24
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return; 118 return;
119 DCHECK(!destroy_sequence_.is_null()); 119 DCHECK(!destroy_sequence_.is_null());
120 std::unique_ptr<SatisfySwapPromise> satisfy( 120 std::unique_ptr<SatisfySwapPromise> satisfy(
121 new SatisfySwapPromise(destroy_sequence_, satisfy_callback_)); 121 new SatisfySwapPromise(destroy_sequence_, satisfy_callback_));
122 layer_tree_host()->GetSwapPromiseManager()->QueueSwapPromise( 122 layer_tree_host()->GetSwapPromiseManager()->QueueSwapPromise(
123 std::move(satisfy)); 123 std::move(satisfy));
124 destroy_sequence_ = SurfaceSequence(); 124 destroy_sequence_ = SurfaceSequence();
125 } 125 }
126 126
127 } // namespace cc 127 } // namespace cc
OLDNEW
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | cc/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698