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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 // SyntheticGestureController::Delegate: 583 // SyntheticGestureController::Delegate:
584 void RequestBeginFrameForSynthesizedInput( 584 void RequestBeginFrameForSynthesizedInput(
585 base::OnceClosure begin_frame_callback) override; 585 base::OnceClosure begin_frame_callback) override;
586 bool HasGestureStopped() override; 586 bool HasGestureStopped() override;
587 587
588 // cc::mojom::MojoCompositorFrameSink implementation. 588 // cc::mojom::MojoCompositorFrameSink implementation.
589 void SetNeedsBeginFrame(bool needs_begin_frame) override; 589 void SetNeedsBeginFrame(bool needs_begin_frame) override;
590 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 590 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
591 cc::CompositorFrame frame) override; 591 cc::CompositorFrame frame) override;
592 void BeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; 592 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override;
593 void EvictCurrentSurface() override {} 593 void EvictCurrentSurface() override {}
594 594
595 protected: 595 protected:
596 // --------------------------------------------------------------------------- 596 // ---------------------------------------------------------------------------
597 // The following method is overridden by RenderViewHost to send upwards to 597 // The following method is overridden by RenderViewHost to send upwards to
598 // its delegate. 598 // its delegate.
599 599
600 // Callback for notification that we failed to receive any rendered graphics 600 // Callback for notification that we failed to receive any rendered graphics
601 // from a newly loaded page. Used for testing. 601 // from a newly loaded page. Used for testing.
602 virtual void NotifyNewContentRenderingTimeoutForTesting() {} 602 virtual void NotifyNewContentRenderingTimeoutForTesting() {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info); 644 void OnGpuSwapBuffersCompletedInternal(const ui::LatencyInfo& latency_info);
645 645
646 646
647 // IPC message handlers 647 // IPC message handlers
648 void OnRenderProcessGone(int status, int error_code); 648 void OnRenderProcessGone(int status, int error_code);
649 void OnClose(); 649 void OnClose();
650 void OnUpdateScreenRectsAck(); 650 void OnUpdateScreenRectsAck();
651 void OnRequestMove(const gfx::Rect& pos); 651 void OnRequestMove(const gfx::Rect& pos);
652 void OnSetTooltipText(const base::string16& tooltip_text, 652 void OnSetTooltipText(const base::string16& tooltip_text,
653 blink::WebTextDirection text_direction_hint); 653 blink::WebTextDirection text_direction_hint);
654 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack);
655 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 654 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
656 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); 655 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet);
657 void OnSetCursor(const WebCursor& cursor); 656 void OnSetCursor(const WebCursor& cursor);
658 void OnTextInputStateChanged(const TextInputState& params); 657 void OnTextInputStateChanged(const TextInputState& params);
659 658
660 void OnImeCompositionRangeChanged( 659 void OnImeCompositionRangeChanged(
661 const gfx::Range& range, 660 const gfx::Range& range,
662 const std::vector<gfx::Rect>& character_bounds); 661 const std::vector<gfx::Rect>& character_bounds);
663 void OnImeCancelComposition(); 662 void OnImeCancelComposition();
664 void OnLockMouse(bool user_gesture, 663 void OnLockMouse(bool user_gesture,
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 base::OnceClosure begin_frame_callback_; 988 base::OnceClosure begin_frame_callback_;
990 989
991 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 990 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
992 991
993 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 992 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
994 }; 993 };
995 994
996 } // namespace content 995 } // namespace content
997 996
998 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 997 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/delegated_frame_host.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698