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

Side by Side Diff: content/test/test_render_view_host.h

Issue 2707243005: Discard compositor frames from unloaded web content (Closed)
Patch Set: Add default value for source ID in frame metadata 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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void SetTooltipText(const base::string16& tooltip_text) override {} 104 void SetTooltipText(const base::string16& tooltip_text) override {}
105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
106 gfx::Rect GetBoundsInRootWindow() override; 106 gfx::Rect GetBoundsInRootWindow() override;
107 bool LockMouse() override; 107 bool LockMouse() override;
108 void UnlockMouse() override; 108 void UnlockMouse() override;
109 cc::FrameSinkId GetFrameSinkId() override; 109 cc::FrameSinkId GetFrameSinkId() override;
110 110
111 bool is_showing() const { return is_showing_; } 111 bool is_showing() const { return is_showing_; }
112 bool is_occluded() const { return is_occluded_; } 112 bool is_occluded() const { return is_occluded_; }
113 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } 113 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; }
114 void reset_did_swap_compositor_frame() { did_swap_compositor_frame_ = false; }
114 115
115 protected: 116 protected:
116 RenderWidgetHostImpl* rwh_; 117 RenderWidgetHostImpl* rwh_;
117 cc::FrameSinkId frame_sink_id_; 118 cc::FrameSinkId frame_sink_id_;
118 119
119 private: 120 private:
120 bool is_showing_; 121 bool is_showing_;
121 bool is_occluded_; 122 bool is_occluded_;
122 bool did_swap_compositor_frame_; 123 bool did_swap_compositor_frame_;
123 ui::DummyTextInputClient text_input_client_; 124 ui::DummyTextInputClient text_input_client_;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 private: 292 private:
292 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 293 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
293 ScopedSetSupportedScaleFactors; 294 ScopedSetSupportedScaleFactors;
294 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 295 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
295 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
296 }; 297 };
297 298
298 } // namespace content 299 } // namespace content
299 300
300 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 301 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698