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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 void SendBeginFrame(cc::BeginFrameArgs args); | 333 void SendBeginFrame(cc::BeginFrameArgs args); |
334 bool Animate(base::TimeTicks frame_time); | 334 bool Animate(base::TimeTicks frame_time); |
335 void RequestDisallowInterceptTouchEvent(); | 335 void RequestDisallowInterceptTouchEvent(); |
336 | 336 |
337 bool SyncCompositorOnMessageReceived(const IPC::Message& message); | 337 bool SyncCompositorOnMessageReceived(const IPC::Message& message); |
338 | 338 |
339 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); | 339 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); |
340 | 340 |
341 void CreateOverscrollControllerIfPossible(); | 341 void CreateOverscrollControllerIfPossible(); |
342 | 342 |
| 343 bool CheckForFullscreenTransitionJank( |
| 344 const cc::CompositorFrameMetadata& metadata); |
| 345 std::unique_ptr<cc::RenderPass> CreateBlackRenderPass(); |
| 346 |
343 // The model object. | 347 // The model object. |
344 RenderWidgetHostImpl* host_; | 348 RenderWidgetHostImpl* host_; |
345 | 349 |
346 // The begin frame source being observed. Null if none. | 350 // The begin frame source being observed. Null if none. |
347 cc::BeginFrameSource* begin_frame_source_; | 351 cc::BeginFrameSource* begin_frame_source_; |
348 cc::BeginFrameArgs last_begin_frame_args_; | 352 cc::BeginFrameArgs last_begin_frame_args_; |
349 uint32_t latest_confirmed_begin_frame_source_id_; | 353 uint32_t latest_confirmed_begin_frame_source_id_; |
350 uint64_t latest_confirmed_begin_frame_sequence_number_; | 354 uint64_t latest_confirmed_begin_frame_sequence_number_; |
351 | 355 |
352 // Indicates whether and for what reason a request for begin frames has been | 356 // Indicates whether and for what reason a request for begin frames has been |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 float prev_top_shown_pix_; | 423 float prev_top_shown_pix_; |
420 float prev_bottom_shown_pix_; | 424 float prev_bottom_shown_pix_; |
421 | 425 |
422 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = | 426 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = |
423 nullptr; | 427 nullptr; |
424 | 428 |
425 base::ObserverList<DestructionObserver> destruction_observers_; | 429 base::ObserverList<DestructionObserver> destruction_observers_; |
426 | 430 |
427 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 431 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
428 | 432 |
| 433 bool was_fullscreen_ = false; |
| 434 bool fullscreen_transitioning_ = false; |
| 435 gfx::Size prev_physical_backing_size_; |
| 436 |
429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 437 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
430 }; | 438 }; |
431 | 439 |
432 } // namespace content | 440 } // namespace content |
433 | 441 |
434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 442 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |