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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Evict frame instead of showing a black frame Created 3 years, 6 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 float max_page_scale_factor_ = 1.f; 592 float max_page_scale_factor_ = 1.f;
590 gfx::ColorSpace raster_color_space_; 593 gfx::ColorSpace raster_color_space_;
591 594
592 uint32_t content_source_id_; 595 uint32_t content_source_id_;
593 LocalSurfaceId local_surface_id_; 596 LocalSurfaceId local_surface_id_;
594 bool defer_commits_ = false; 597 bool defer_commits_ = false;
595 598
596 SkColor background_color_ = SK_ColorWHITE; 599 SkColor background_color_ = SK_ColorWHITE;
597 bool has_transparent_background_ = false; 600 bool has_transparent_background_ = false;
598 601
602 bool is_fullscreen_ = false;
603
599 LayerSelection selection_; 604 LayerSelection selection_;
600 605
601 gfx::Size device_viewport_size_; 606 gfx::Size device_viewport_size_;
602 607
603 bool have_scroll_event_handlers_ = false; 608 bool have_scroll_event_handlers_ = false;
604 EventListenerProperties event_listener_properties_[static_cast<size_t>( 609 EventListenerProperties event_listener_properties_[static_cast<size_t>(
605 EventListenerClass::kNumClasses)]; 610 EventListenerClass::kNumClasses)];
606 611
607 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 612 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
608 613
(...skipping 25 matching lines...) Expand all
634 639
635 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> 640 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>>
636 queued_image_decodes_; 641 queued_image_decodes_;
637 642
638 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 643 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
639 }; 644 };
640 645
641 } // namespace cc 646 } // namespace cc
642 647
643 #endif // CC_TREES_LAYER_TREE_HOST_H_ 648 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698