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

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

Issue 1135743004: cc: Add null checks for GrContext created by ContextProviderCommandBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Worker context provider's lock must be held during GrContext creation. Created 5 years, 7 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/test/fake_output_surface.h ('k') | 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); 321 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface);
322 TileManager* tile_manager() { return tile_manager_.get(); } 322 TileManager* tile_manager() { return tile_manager_.get(); }
323 323
324 void set_has_gpu_rasterization_trigger(bool flag) { 324 void set_has_gpu_rasterization_trigger(bool flag) {
325 has_gpu_rasterization_trigger_ = flag; 325 has_gpu_rasterization_trigger_ = flag;
326 } 326 }
327 void set_content_is_suitable_for_gpu_rasterization(bool flag) { 327 void set_content_is_suitable_for_gpu_rasterization(bool flag) {
328 content_is_suitable_for_gpu_rasterization_ = flag; 328 content_is_suitable_for_gpu_rasterization_ = flag;
329 } 329 }
330 bool CanUseGpuRasterization();
330 void UpdateGpuRasterizationStatus(); 331 void UpdateGpuRasterizationStatus();
331 bool use_gpu_rasterization() const { return use_gpu_rasterization_; } 332 bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
332 bool use_msaa() const { return use_msaa_; } 333 bool use_msaa() const { return use_msaa_; }
333 334
334 GpuRasterizationStatus gpu_rasterization_status() const { 335 GpuRasterizationStatus gpu_rasterization_status() const {
335 return gpu_rasterization_status_; 336 return gpu_rasterization_status_;
336 } 337 }
337 338
338 bool create_low_res_tiling() const { 339 bool create_low_res_tiling() const {
339 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 340 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 761 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
761 762
762 scoped_ptr<Viewport> viewport_; 763 scoped_ptr<Viewport> viewport_;
763 764
764 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 765 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
765 }; 766 };
766 767
767 } // namespace cc 768 } // namespace cc
768 769
769 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 770 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698