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

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

Issue 478703002: Remove cc::LayerTreeHostImpl::IsContextLost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ctx4
Patch Set: Fix style: bracing, no (void) Created 6 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 | « no previous file | cc/trees/layer_tree_host_impl.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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 int id() const { return id_; } 282 int id() const { return id_; }
283 bool CanDraw() const; 283 bool CanDraw() const;
284 OutputSurface* output_surface() const { return output_surface_.get(); } 284 OutputSurface* output_surface() const { return output_surface_.get(); }
285 285
286 std::string LayerTreeAsJson() const; 286 std::string LayerTreeAsJson() const;
287 287
288 void FinishAllRendering(); 288 void FinishAllRendering();
289 int SourceAnimationFrameNumber() const; 289 int SourceAnimationFrameNumber() const;
290 290
291 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); 291 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface);
292 bool IsContextLost();
293 TileManager* tile_manager() { return tile_manager_.get(); } 292 TileManager* tile_manager() { return tile_manager_.get(); }
294 void SetUseGpuRasterization(bool use_gpu); 293 void SetUseGpuRasterization(bool use_gpu);
295 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } 294 bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
296 bool create_low_res_tiling() const { 295 bool create_low_res_tiling() const {
297 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 296 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
298 } 297 }
299 ResourcePool* resource_pool() { return resource_pool_.get(); } 298 ResourcePool* resource_pool() { return resource_pool_.get(); }
300 Renderer* renderer() { return renderer_.get(); } 299 Renderer* renderer() { return renderer_.get(); }
301 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 300 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
302 301
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 699
701 // Expected time between two begin impl frame calls. 700 // Expected time between two begin impl frame calls.
702 base::TimeDelta begin_impl_frame_interval_; 701 base::TimeDelta begin_impl_frame_interval_;
703 702
704 scoped_ptr<AnimationRegistrar> animation_registrar_; 703 scoped_ptr<AnimationRegistrar> animation_registrar_;
705 704
706 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 705 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
707 MicroBenchmarkControllerImpl micro_benchmark_controller_; 706 MicroBenchmarkControllerImpl micro_benchmark_controller_;
708 707
709 bool need_to_update_visible_tiles_before_draw_; 708 bool need_to_update_visible_tiles_before_draw_;
710 bool have_valid_output_surface_;
711 709
712 // Optional callback to notify of new tree activations. 710 // Optional callback to notify of new tree activations.
713 base::Closure tree_activation_callback_; 711 base::Closure tree_activation_callback_;
714 712
715 SharedBitmapManager* shared_bitmap_manager_; 713 SharedBitmapManager* shared_bitmap_manager_;
716 int id_; 714 int id_;
717 715
718 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 716 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
719 717
720 size_t transfer_buffer_memory_limit_; 718 size_t transfer_buffer_memory_limit_;
721 719
722 std::vector<PictureLayerImpl*> picture_layers_; 720 std::vector<PictureLayerImpl*> picture_layers_;
723 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 721 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
724 722
725 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 723 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
726 }; 724 };
727 725
728 } // namespace cc 726 } // namespace cc
729 727
730 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 728 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698