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

Side by Side Diff: third_party/WebKit/public/platform/WebLayerTreeView.h

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Show a black frame during fullscreen transitions to hide jank 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void SetDeviceScaleFactor(float) {} 72 virtual void SetDeviceScaleFactor(float) {}
73 73
74 // Sets the background color for the viewport. 74 // Sets the background color for the viewport.
75 virtual void SetBackgroundColor(WebColor) {} 75 virtual void SetBackgroundColor(WebColor) {}
76 76
77 // Sets whether this view is visible. In threaded mode, a view that is not 77 // Sets whether this view is visible. In threaded mode, a view that is not
78 // visible will not composite or trigger updateAnimations() or layout() calls 78 // visible will not composite or trigger updateAnimations() or layout() calls
79 // until it becomes visible. 79 // until it becomes visible.
80 virtual void SetVisible(bool) {} 80 virtual void SetVisible(bool) {}
81 81
82 // Sets whether this view is in fullscreen mode.
83 virtual void SetIsFullscreen(bool) {}
84
82 // Sets the current page scale factor and minimum / maximum limits. Both 85 // Sets the current page scale factor and minimum / maximum limits. Both
83 // limits are initially 1 (no page scale allowed). 86 // limits are initially 1 (no page scale allowed).
84 virtual void SetPageScaleFactorAndLimits(float page_scale_factor, 87 virtual void SetPageScaleFactorAndLimits(float page_scale_factor,
85 float minimum, 88 float minimum,
86 float maximum) {} 89 float maximum) {}
87 90
88 // Starts an animation of the page scale to a target scale factor and scroll 91 // Starts an animation of the page scale to a target scale factor and scroll
89 // offset. 92 // offset.
90 // If useAnchor is true, destination is a point on the screen that will remain 93 // If useAnchor is true, destination is a point on the screen that will remain
91 // fixed for the duration of the animation. 94 // fixed for the duration of the animation.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual void SetShowScrollBottleneckRects(bool) {} 189 virtual void SetShowScrollBottleneckRects(bool) {}
187 190
188 // ReportTimeCallback is a callback that should be fired when the 191 // ReportTimeCallback is a callback that should be fired when the
189 // corresponding Swap completes (either with DidSwap or DidNotSwap). 192 // corresponding Swap completes (either with DidSwap or DidNotSwap).
190 virtual void NotifySwapTime(ReportTimeCallback callback) {} 193 virtual void NotifySwapTime(ReportTimeCallback callback) {}
191 }; 194 };
192 195
193 } // namespace blink 196 } // namespace blink
194 197
195 #endif // WebLayerTreeView_h 198 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698