OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |