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

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

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 5 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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // cc::SurfaceFactoryClient implementation. 125 // cc::SurfaceFactoryClient implementation.
126 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 126 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
127 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; 127 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override;
128 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 128 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
129 129
130 bool CanCopyToBitmap() const; 130 bool CanCopyToBitmap() const;
131 131
132 // Public interface exposed to RenderWidgetHostView. 132 // Public interface exposed to RenderWidgetHostView.
133 133
134 void SwapDelegatedFrame(uint32_t output_surface_id, 134 void SwapDelegatedFrame(uint32_t output_surface_id,
135 std::unique_ptr<cc::CompositorFrame> frame); 135 cc::CompositorFrame frame);
136 void ClearDelegatedFrame(); 136 void ClearDelegatedFrame();
137 void WasHidden(); 137 void WasHidden();
138 void WasShown(const ui::LatencyInfo& latency_info); 138 void WasShown(const ui::LatencyInfo& latency_info);
139 void WasResized(); 139 void WasResized();
140 bool HasSavedFrame(); 140 bool HasSavedFrame();
141 gfx::Size GetRequestedRendererSize() const; 141 gfx::Size GetRequestedRendererSize() const;
142 void SetCompositor(ui::Compositor* compositor); 142 void SetCompositor(ui::Compositor* compositor);
143 void ResetCompositor(); 143 void ResetCompositor();
144 void SetVSyncParameters(const base::TimeTicks& timebase, 144 void SetVSyncParameters(const base::TimeTicks& timebase,
145 const base::TimeDelta& interval); 145 const base::TimeDelta& interval);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // YUV readback pipeline. 327 // YUV readback pipeline.
328 std::unique_ptr<display_compositor::ReadbackYUVInterface> 328 std::unique_ptr<display_compositor::ReadbackYUVInterface>
329 yuv_readback_pipeline_; 329 yuv_readback_pipeline_;
330 330
331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
332 }; 332 };
333 333
334 } // namespace content 334 } // namespace content
335 335
336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698