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

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

Issue 2658293002: content: Remove Lock/Unlock CompositingSurface API from RWH. (Closed)
Patch Set: last_frame_info Created 3 years, 10 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/public/browser/render_widget_host.h ('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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const gfx::Rect& src_subrect, 107 const gfx::Rect& src_subrect,
108 const gfx::Size& dst_size, 108 const gfx::Size& dst_size,
109 const ReadbackRequestCallback& callback, 109 const ReadbackRequestCallback& callback,
110 const SkColorType preferred_color_type) override; 110 const SkColorType preferred_color_type) override;
111 void CopyFromCompositingSurfaceToVideoFrame( 111 void CopyFromCompositingSurfaceToVideoFrame(
112 const gfx::Rect& src_subrect, 112 const gfx::Rect& src_subrect,
113 const scoped_refptr<media::VideoFrame>& target, 113 const scoped_refptr<media::VideoFrame>& target,
114 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 114 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
115 bool CanCopyToVideoFrame() const override; 115 bool CanCopyToVideoFrame() const override;
116 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 116 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
117 void LockCompositingSurface() override {}
118 void UnlockCompositingSurface() override {}
119 gfx::Rect GetBoundsInRootWindow() override; 117 gfx::Rect GetBoundsInRootWindow() override;
120 bool LockMouse() override; 118 bool LockMouse() override;
121 void UnlockMouse() override; 119 void UnlockMouse() override;
122 cc::FrameSinkId GetFrameSinkId() override; 120 cc::FrameSinkId GetFrameSinkId() override;
123 121
124 bool is_showing() const { return is_showing_; } 122 bool is_showing() const { return is_showing_; }
125 bool is_occluded() const { return is_occluded_; } 123 bool is_occluded() const { return is_occluded_; }
126 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } 124 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; }
127 125
128 protected: 126 protected:
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 private: 302 private:
305 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 303 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
306 ScopedSetSupportedScaleFactors; 304 ScopedSetSupportedScaleFactors;
307 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 305 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
308 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 306 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
309 }; 307 };
310 308
311 } // namespace content 309 } // namespace content
312 310
313 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 311 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698