OLD | NEW |
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 Loading... |
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 |
348 // The model object. | 351 // The model object. |
349 RenderWidgetHostImpl* host_; | 352 RenderWidgetHostImpl* host_; |
350 | 353 |
351 // The begin frame source being observed. Null if none. | 354 // The begin frame source being observed. Null if none. |
352 cc::BeginFrameSource* begin_frame_source_; | 355 cc::BeginFrameSource* begin_frame_source_; |
353 cc::BeginFrameArgs last_begin_frame_args_; | 356 cc::BeginFrameArgs last_begin_frame_args_; |
354 uint32_t latest_confirmed_begin_frame_source_id_; | 357 uint32_t latest_confirmed_begin_frame_source_id_; |
355 uint64_t latest_confirmed_begin_frame_sequence_number_; | 358 uint64_t latest_confirmed_begin_frame_sequence_number_; |
356 | 359 |
357 // Indicates whether and for what reason a request for begin frames has been | 360 // 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 Loading... |
417 std::unique_ptr<viz::FrameEvictor> frame_evictor_; | 420 std::unique_ptr<viz::FrameEvictor> frame_evictor_; |
418 | 421 |
419 bool observing_root_window_; | 422 bool observing_root_window_; |
420 | 423 |
421 // The last scroll offset of the view. | 424 // The last scroll offset of the view. |
422 gfx::Vector2dF last_scroll_offset_; | 425 gfx::Vector2dF last_scroll_offset_; |
423 | 426 |
424 float prev_top_shown_pix_; | 427 float prev_top_shown_pix_; |
425 float prev_bottom_shown_pix_; | 428 float prev_bottom_shown_pix_; |
426 | 429 |
| 430 bool was_fullscreen_ = false; |
| 431 bool fullscreen_transitioning_ = false; |
| 432 gfx::Size prev_physical_backing_size_; |
| 433 |
427 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = | 434 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = |
428 nullptr; | 435 nullptr; |
429 | 436 |
430 base::ObserverList<DestructionObserver> destruction_observers_; | 437 base::ObserverList<DestructionObserver> destruction_observers_; |
431 | 438 |
432 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 439 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
433 | 440 |
434 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 441 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
435 }; | 442 }; |
436 | 443 |
437 } // namespace content | 444 } // namespace content |
438 | 445 |
439 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 446 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |