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

Side by Side Diff: content/browser/compositor/delegated_frame_host.h

Issue 1673783004: Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Register id namespace on Android Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // ImageTransportFactoryObserver implementation. 110 // ImageTransportFactoryObserver implementation.
111 void OnLostResources() override; 111 void OnLostResources() override;
112 112
113 // DelegatedFrameEvictorClient implementation. 113 // DelegatedFrameEvictorClient implementation.
114 void EvictDelegatedFrame() override; 114 void EvictDelegatedFrame() override;
115 115
116 // cc::SurfaceFactoryClient implementation. 116 // cc::SurfaceFactoryClient implementation.
117 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 117 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
118 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; 118 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override;
119 void SetBeginFrameSource(cc::SurfaceId surface_id, 119 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
120 cc::BeginFrameSource* begin_frame_source) override;
121 120
122 bool CanCopyToBitmap() const; 121 bool CanCopyToBitmap() const;
123 122
124 // Public interface exposed to RenderWidgetHostView. 123 // Public interface exposed to RenderWidgetHostView.
125 124
126 void SwapDelegatedFrame(uint32_t output_surface_id, 125 void SwapDelegatedFrame(uint32_t output_surface_id,
127 scoped_ptr<cc::CompositorFrame> frame); 126 scoped_ptr<cc::CompositorFrame> frame);
128 void ClearDelegatedFrame(); 127 void ClearDelegatedFrame();
129 void WasHidden(); 128 void WasHidden();
130 void WasShown(const ui::LatencyInfo& latency_info); 129 void WasShown(const ui::LatencyInfo& latency_info);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // Callback used to pass the output request to the layer or to a function 299 // Callback used to pass the output request to the layer or to a function
301 // specified by a test. 300 // specified by a test.
302 base::Callback<void(scoped_ptr<cc::CopyOutputRequest>)> 301 base::Callback<void(scoped_ptr<cc::CopyOutputRequest>)>
303 request_copy_of_output_callback_for_testing_; 302 request_copy_of_output_callback_for_testing_;
304 303
305 // YUV readback pipeline. 304 // YUV readback pipeline.
306 scoped_ptr<content::ReadbackYUVInterface> 305 scoped_ptr<content::ReadbackYUVInterface>
307 yuv_readback_pipeline_; 306 yuv_readback_pipeline_;
308 307
309 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 308 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
309
310 cc::BeginFrameSource* begin_frame_source_;
310 }; 311 };
311 312
312 } // namespace content 313 } // namespace content
313 314
314 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 315 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_unittest.cc ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698