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

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

Issue 2175293003: cc: Register namespace hierarchy after ui::Compositor's SurfaceFactory available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit test and addressed comments Created 4 years, 5 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 | « no previous file | content/browser/renderer_host/delegated_frame_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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 292 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
293 293
294 Proxy* proxy() const { return proxy_.get(); } 294 Proxy* proxy() const { return proxy_.get(); }
295 TaskRunnerProvider* task_runner_provider() const { 295 TaskRunnerProvider* task_runner_provider() const {
296 return task_runner_provider_.get(); 296 return task_runner_provider_.get();
297 } 297 }
298 AnimationHost* animation_host() const { return animation_host_.get(); } 298 AnimationHost* animation_host() const { return animation_host_.get(); }
299 299
300 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } 300 bool in_paint_layer_contents() const { return in_paint_layer_contents_; }
301 301
302 bool has_output_surface() const { return !!current_output_surface_; }
303
302 // CreateUIResource creates a resource given a bitmap. The bitmap is 304 // CreateUIResource creates a resource given a bitmap. The bitmap is
303 // generated via an interface function, which is called when initializing the 305 // generated via an interface function, which is called when initializing the
304 // resource and when the resource has been lost (due to lost context). The 306 // resource and when the resource has been lost (due to lost context). The
305 // parameter of the interface is a single boolean, which indicates whether the 307 // parameter of the interface is a single boolean, which indicates whether the
306 // resource has been lost or not. CreateUIResource returns an Id of the 308 // resource has been lost or not. CreateUIResource returns an Id of the
307 // resource, which is always positive. 309 // resource, which is always positive.
308 virtual UIResourceId CreateUIResource(UIResourceClient* client); 310 virtual UIResourceId CreateUIResource(UIResourceClient* client);
309 // Deletes a UI resource. May safely be called more than once. 311 // Deletes a UI resource. May safely be called more than once.
310 virtual void DeleteUIResource(UIResourceId id); 312 virtual void DeleteUIResource(UIResourceId id);
311 // Put the recreation of all UI resources into the resource queue after they 313 // Put the recreation of all UI resources into the resource queue after they
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 uint32_t surface_client_id_; 612 uint32_t surface_client_id_;
611 uint32_t next_surface_sequence_; 613 uint32_t next_surface_sequence_;
612 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; 614 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0;
613 615
614 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 616 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
615 }; 617 };
616 618
617 } // namespace cc 619 } // namespace cc
618 620
619 #endif // CC_TREES_LAYER_TREE_HOST_H_ 621 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698