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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Build error fixes 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 void SendBeginFrame(cc::BeginFrameArgs args); 338 void SendBeginFrame(cc::BeginFrameArgs args);
339 bool Animate(base::TimeTicks frame_time); 339 bool Animate(base::TimeTicks frame_time);
340 void RequestDisallowInterceptTouchEvent(); 340 void RequestDisallowInterceptTouchEvent();
341 341
342 bool SyncCompositorOnMessageReceived(const IPC::Message& message); 342 bool SyncCompositorOnMessageReceived(const IPC::Message& message);
343 343
344 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); 344 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event);
345 345
346 void CreateOverscrollControllerIfPossible(); 346 void CreateOverscrollControllerIfPossible();
347 347
348 bool CheckForFullscreenTransitionJank(
349 const cc::CompositorFrameMetadata& metadata);
350 std::unique_ptr<cc::RenderPass> CreateBlackRenderPass();
351
348 // The model object. 352 // The model object.
349 RenderWidgetHostImpl* host_; 353 RenderWidgetHostImpl* host_;
350 354
351 // The begin frame source being observed. Null if none. 355 // The begin frame source being observed. Null if none.
352 cc::BeginFrameSource* begin_frame_source_; 356 cc::BeginFrameSource* begin_frame_source_;
353 cc::BeginFrameArgs last_begin_frame_args_; 357 cc::BeginFrameArgs last_begin_frame_args_;
354 uint32_t latest_confirmed_begin_frame_source_id_; 358 uint32_t latest_confirmed_begin_frame_source_id_;
355 uint64_t latest_confirmed_begin_frame_sequence_number_; 359 uint64_t latest_confirmed_begin_frame_sequence_number_;
356 360
357 // Indicates whether and for what reason a request for begin frames has been 361 // Indicates whether and for what reason a request for begin frames has been
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 std::unique_ptr<viz::FrameEvictor> frame_evictor_; 421 std::unique_ptr<viz::FrameEvictor> frame_evictor_;
418 422
419 bool observing_root_window_; 423 bool observing_root_window_;
420 424
421 // The last scroll offset of the view. 425 // The last scroll offset of the view.
422 gfx::Vector2dF last_scroll_offset_; 426 gfx::Vector2dF last_scroll_offset_;
423 427
424 float prev_top_shown_pix_; 428 float prev_top_shown_pix_;
425 float prev_bottom_shown_pix_; 429 float prev_bottom_shown_pix_;
426 430
431 bool was_fullscreen_ = false;
432 bool fullscreen_transitioning_ = false;
433 gfx::Size prev_physical_backing_size_;
434
427 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = 435 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ =
428 nullptr; 436 nullptr;
429 437
430 base::ObserverList<DestructionObserver> destruction_observers_; 438 base::ObserverList<DestructionObserver> destruction_observers_;
431 439
432 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 440 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
433 441
434 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 442 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
435 }; 443 };
436 444
437 } // namespace content 445 } // namespace content
438 446
439 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 447 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698