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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Re-add feature flag Created 3 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
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 void set_background_color(SkColor color) { background_color_ = color; } 301 void set_background_color(SkColor color) { background_color_ = color; }
302 SkColor background_color() const { return background_color_; } 302 SkColor background_color() const { return background_color_; }
303 303
304 void set_has_transparent_background(bool transparent) { 304 void set_has_transparent_background(bool transparent) {
305 has_transparent_background_ = transparent; 305 has_transparent_background_ = transparent;
306 } 306 }
307 bool has_transparent_background() const { 307 bool has_transparent_background() const {
308 return has_transparent_background_; 308 return has_transparent_background_;
309 } 309 }
310 310
311 void set_is_fullscreen(bool is_fullscreen) { is_fullscreen_ = is_fullscreen; }
312 bool is_fullscreen() const { return is_fullscreen_; }
313
311 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 314 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
312 bool use_anchor, 315 bool use_anchor,
313 float scale, 316 float scale,
314 base::TimeDelta duration); 317 base::TimeDelta duration);
315 bool HasPendingPageScaleAnimation() const; 318 bool HasPendingPageScaleAnimation() const;
316 319
317 void SetDeviceScaleFactor(float device_scale_factor); 320 void SetDeviceScaleFactor(float device_scale_factor);
318 float device_scale_factor() const { return device_scale_factor_; } 321 float device_scale_factor() const { return device_scale_factor_; }
319 322
320 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); 323 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 float max_page_scale_factor_ = 1.f; 604 float max_page_scale_factor_ = 1.f;
602 gfx::ColorSpace raster_color_space_; 605 gfx::ColorSpace raster_color_space_;
603 606
604 uint32_t content_source_id_; 607 uint32_t content_source_id_;
605 LocalSurfaceId local_surface_id_; 608 LocalSurfaceId local_surface_id_;
606 bool defer_commits_ = false; 609 bool defer_commits_ = false;
607 610
608 SkColor background_color_ = SK_ColorWHITE; 611 SkColor background_color_ = SK_ColorWHITE;
609 bool has_transparent_background_ = false; 612 bool has_transparent_background_ = false;
610 613
614 bool is_fullscreen_ = false;
615
611 LayerSelection selection_; 616 LayerSelection selection_;
612 617
613 gfx::Size device_viewport_size_; 618 gfx::Size device_viewport_size_;
614 619
615 bool have_scroll_event_handlers_ = false; 620 bool have_scroll_event_handlers_ = false;
616 EventListenerProperties event_listener_properties_[static_cast<size_t>( 621 EventListenerProperties event_listener_properties_[static_cast<size_t>(
617 EventListenerClass::kNumClasses)]; 622 EventListenerClass::kNumClasses)];
618 623
619 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 624 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
620 625
(...skipping 30 matching lines...) Expand all
651 656
652 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> 657 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>>
653 queued_image_decodes_; 658 queued_image_decodes_;
654 659
655 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
656 }; 661 };
657 662
658 } // namespace cc 663 } // namespace cc
659 664
660 #endif // CC_TREES_LAYER_TREE_HOST_H_ 665 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698