| 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_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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 578 |
| 579 const cc::CompositorFrameMetadata& last_frame_metadata() { | 579 const cc::CompositorFrameMetadata& last_frame_metadata() { |
| 580 return last_frame_metadata_; | 580 return last_frame_metadata_; |
| 581 } | 581 } |
| 582 | 582 |
| 583 // cc::mojom::MojoCompositorFrameSink implementation. | 583 // cc::mojom::MojoCompositorFrameSink implementation. |
| 584 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 584 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
| 585 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 585 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 586 cc::CompositorFrame frame) override; | 586 cc::CompositorFrame frame) override; |
| 587 void BeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; | 587 void BeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; |
| 588 void EvictFrame() override {} | 588 void EvictCurrentSurface() override {} |
| 589 | 589 |
| 590 protected: | 590 protected: |
| 591 // --------------------------------------------------------------------------- | 591 // --------------------------------------------------------------------------- |
| 592 // The following method is overridden by RenderViewHost to send upwards to | 592 // The following method is overridden by RenderViewHost to send upwards to |
| 593 // its delegate. | 593 // its delegate. |
| 594 | 594 |
| 595 // Callback for notification that we failed to receive any rendered graphics | 595 // Callback for notification that we failed to receive any rendered graphics |
| 596 // from a newly loaded page. Used for testing. | 596 // from a newly loaded page. Used for testing. |
| 597 virtual void NotifyNewContentRenderingTimeoutForTesting() {} | 597 virtual void NotifyNewContentRenderingTimeoutForTesting() {} |
| 598 | 598 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; | 981 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; |
| 982 | 982 |
| 983 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 983 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 984 | 984 |
| 985 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 985 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 986 }; | 986 }; |
| 987 | 987 |
| 988 } // namespace content | 988 } // namespace content |
| 989 | 989 |
| 990 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 990 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |