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

Unified Diff: content/test/test_render_view_host.h

Issue 2780713004: Hide compositor_frame_sink_id from RenderWidgetHostView* (Closed)
Patch Set: Added a comment in android Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_view_host.h
diff --git a/content/test/test_render_view_host.h b/content/test/test_render_view_host.h
index ea620101de1c16c86bcd469451afe608f78890b7..3b6a0c95094c38a2722806f0894b8dd6009bcd75 100644
--- a/content/test/test_render_view_host.h
+++ b/content/test/test_render_view_host.h
@@ -86,8 +86,8 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
bool IsSpeaking() const override;
void StopSpeaking() override;
#endif // defined(OS_MACOSX)
- void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
- const cc::LocalSurfaceId& local_surface_id,
+ void DidCreateNewRendererCompositorFrameSink() override;
+ void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) override;
void ClearCompositorFrame() override {}
void SetNeedsBeginFrames(bool needs_begin_frames) override {}
@@ -113,6 +113,12 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
bool is_occluded() const { return is_occluded_; }
bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; }
void reset_did_swap_compositor_frame() { did_swap_compositor_frame_ = false; }
+ bool did_change_compositor_frame_sink() {
+ return did_change_compositor_frame_sink_;
+ }
+ void reset_did_change_compositor_frame_sink() {
+ did_change_compositor_frame_sink_ = false;
+ }
protected:
RenderWidgetHostImpl* rwh_;
@@ -122,6 +128,7 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
bool is_showing_;
bool is_occluded_;
bool did_swap_compositor_frame_;
+ bool did_change_compositor_frame_sink_ = false;
ui::DummyTextInputClient text_input_client_;
};
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698