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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 1688563002: cc :: Move some tracking of layer_property_changed to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 // Deserializes the protobuf into this LayerTreeHost before a commit. The 410 // Deserializes the protobuf into this LayerTreeHost before a commit. The
411 // expected input is a serialized remote LayerTreeHost. After deserializing 411 // expected input is a serialized remote LayerTreeHost. After deserializing
412 // the protobuf, the normal commit-flow should continue. 412 // the protobuf, the normal commit-flow should continue.
413 void FromProtobufForCommit(const proto::LayerTreeHost& proto); 413 void FromProtobufForCommit(const proto::LayerTreeHost& proto);
414 414
415 bool IsSingleThreaded() const; 415 bool IsSingleThreaded() const;
416 bool IsThreaded() const; 416 bool IsThreaded() const;
417 bool IsRemoteServer() const; 417 bool IsRemoteServer() const;
418 bool IsRemoteClient() const; 418 bool IsRemoteClient() const;
419 void BuildPropertyTreesForTesting();
419 420
420 protected: 421 protected:
421 LayerTreeHost(InitParams* params, CompositorMode mode); 422 LayerTreeHost(InitParams* params, CompositorMode mode);
422 void InitializeThreaded( 423 void InitializeThreaded(
423 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 424 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
424 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 425 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
425 scoped_ptr<BeginFrameSource> external_begin_frame_source); 426 scoped_ptr<BeginFrameSource> external_begin_frame_source);
426 void InitializeSingleThreaded( 427 void InitializeSingleThreaded(
427 LayerTreeHostSingleThreadClient* single_thread_client, 428 LayerTreeHostSingleThreadClient* single_thread_client,
428 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 429 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 582
582 uint32_t surface_id_namespace_; 583 uint32_t surface_id_namespace_;
583 uint32_t next_surface_sequence_; 584 uint32_t next_surface_sequence_;
584 585
585 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 586 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
586 }; 587 };
587 588
588 } // namespace cc 589 } // namespace cc
589 590
590 #endif // CC_TREES_LAYER_TREE_HOST_H_ 591 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698