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

Side by Side Diff: cc/layers/layer_impl.h

Issue 2851193002: cc: Rename LayerImpl::is_drawn_render_surface_layer_list_member (Closed)
Patch Set: Rebase Created 3 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/layers/effect_tree_layer_list_iterator.cc ('k') | cc/layers/layer_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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 virtual size_t GPUMemoryUsageInBytes() const; 375 virtual size_t GPUMemoryUsageInBytes() const;
376 376
377 void SetNeedsPushProperties(); 377 void SetNeedsPushProperties();
378 378
379 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); 379 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark);
380 380
381 void SetDebugInfo( 381 void SetDebugInfo(
382 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info); 382 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info);
383 383
384 void set_is_drawn_render_surface_layer_list_member(bool is_member) { 384 void set_contributes_to_drawn_render_surface(bool is_member) {
385 is_drawn_render_surface_layer_list_member_ = is_member; 385 contributes_to_drawn_render_surface_ = is_member;
386 } 386 }
387 387
388 bool is_drawn_render_surface_layer_list_member() const { 388 bool contributes_to_drawn_render_surface() const {
389 return is_drawn_render_surface_layer_list_member_; 389 return contributes_to_drawn_render_surface_;
390 } 390 }
391 391
392 bool IsDrawnScrollbar() { 392 bool IsDrawnScrollbar() {
393 return ToScrollbarLayer() && is_drawn_render_surface_layer_list_member_; 393 return ToScrollbarLayer() && contributes_to_drawn_render_surface_;
394 } 394 }
395 395
396 void set_may_contain_video(bool yes) { may_contain_video_ = yes; } 396 void set_may_contain_video(bool yes) { may_contain_video_ = yes; }
397 bool may_contain_video() const { return may_contain_video_; } 397 bool may_contain_video() const { return may_contain_video_; }
398 398
399 // Layers that share a sorting context id will be sorted together in 3d 399 // Layers that share a sorting context id will be sorted together in 3d
400 // space. 0 is a special value that means this layer will not be sorted and 400 // space. 0 is a special value that means this layer will not be sorted and
401 // will be drawn in paint order. 401 // will be drawn in paint order.
402 int GetSortingContextId() const; 402 int GetSortingContextId() const;
403 403
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 // Tracks if drawing-related properties have changed since last redraw. 494 // Tracks if drawing-related properties have changed since last redraw.
495 bool layer_property_changed_ : 1; 495 bool layer_property_changed_ : 1;
496 bool may_contain_video_ : 1; 496 bool may_contain_video_ : 1;
497 497
498 bool masks_to_bounds_ : 1; 498 bool masks_to_bounds_ : 1;
499 bool contents_opaque_ : 1; 499 bool contents_opaque_ : 1;
500 bool use_parent_backface_visibility_ : 1; 500 bool use_parent_backface_visibility_ : 1;
501 bool use_local_transform_for_backface_visibility_ : 1; 501 bool use_local_transform_for_backface_visibility_ : 1;
502 bool should_check_backface_visibility_ : 1; 502 bool should_check_backface_visibility_ : 1;
503 bool draws_content_ : 1; 503 bool draws_content_ : 1;
504 bool is_drawn_render_surface_layer_list_member_ : 1; 504 bool contributes_to_drawn_render_surface_ : 1;
505 505
506 // This is true if and only if the layer was ever ready since it last animated 506 // This is true if and only if the layer was ever ready since it last animated
507 // (all content was complete). 507 // (all content was complete).
508 bool was_ever_ready_since_last_transform_animation_ : 1; 508 bool was_ever_ready_since_last_transform_animation_ : 1;
509 509
510 Region non_fast_scrollable_region_; 510 Region non_fast_scrollable_region_;
511 Region touch_event_handler_region_; 511 Region touch_event_handler_region_;
512 SkColor background_color_; 512 SkColor background_color_;
513 SkColor safe_opaque_background_color_; 513 SkColor safe_opaque_background_color_;
514 514
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 bool needs_show_scrollbars_ : 1; 562 bool needs_show_scrollbars_ : 1;
563 563
564 bool raster_even_if_not_in_rsll_ : 1; 564 bool raster_even_if_not_in_rsll_ : 1;
565 565
566 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 566 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
567 }; 567 };
568 568
569 } // namespace cc 569 } // namespace cc
570 570
571 #endif // CC_LAYERS_LAYER_IMPL_H_ 571 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/effect_tree_layer_list_iterator.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698