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

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

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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') | content/test/test_render_view_host.cc » ('j') | 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 const gfx::Rect& src_subrect, 114 const gfx::Rect& src_subrect,
115 const scoped_refptr<media::VideoFrame>& target, 115 const scoped_refptr<media::VideoFrame>& target,
116 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 116 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
117 bool CanCopyToVideoFrame() const override; 117 bool CanCopyToVideoFrame() const override;
118 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 118 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
119 void LockCompositingSurface() override {} 119 void LockCompositingSurface() override {}
120 void UnlockCompositingSurface() override {} 120 void UnlockCompositingSurface() override {}
121 gfx::Rect GetBoundsInRootWindow() override; 121 gfx::Rect GetBoundsInRootWindow() override;
122 bool LockMouse() override; 122 bool LockMouse() override;
123 void UnlockMouse() override; 123 void UnlockMouse() override;
124 uint32_t GetSurfaceClientId() override; 124 cc::FrameSinkId GetFrameSinkId() override;
125 125
126 bool is_showing() const { return is_showing_; } 126 bool is_showing() const { return is_showing_; }
127 bool is_occluded() const { return is_occluded_; } 127 bool is_occluded() const { return is_occluded_; }
128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } 128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; }
129 129
130 protected: 130 protected:
131 RenderWidgetHostImpl* rwh_; 131 RenderWidgetHostImpl* rwh_;
132 132
133 private: 133 private:
134 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 134 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 private: 301 private:
302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
303 ScopedSetSupportedScaleFactors; 303 ScopedSetSupportedScaleFactors;
304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
306 }; 306 };
307 307
308 } // namespace content 308 } // namespace content
309 309
310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698