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

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

Issue 2102123002: Make Satisfy/Require callbacks pass Surface id and sequence by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; 117 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override;
118 118
119 // ImageTransportFactoryObserver implementation. 119 // ImageTransportFactoryObserver implementation.
120 void OnLostResources() override; 120 void OnLostResources() override;
121 121
122 // DelegatedFrameEvictorClient implementation. 122 // DelegatedFrameEvictorClient implementation.
123 void EvictDelegatedFrame() override; 123 void EvictDelegatedFrame() override;
124 124
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(const cc::SurfaceId& id,
128 const gfx::Rect& damage_rect) override;
128 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 129 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
129 130
130 bool CanCopyToBitmap() const; 131 bool CanCopyToBitmap() const;
131 132
132 // Public interface exposed to RenderWidgetHostView. 133 // Public interface exposed to RenderWidgetHostView.
133 134
134 void SwapDelegatedFrame(uint32_t output_surface_id, 135 void SwapDelegatedFrame(uint32_t output_surface_id,
135 cc::CompositorFrame frame); 136 cc::CompositorFrame frame);
136 void ClearDelegatedFrame(); 137 void ClearDelegatedFrame();
137 void WasHidden(); 138 void WasHidden();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // YUV readback pipeline. 328 // YUV readback pipeline.
328 std::unique_ptr<display_compositor::ReadbackYUVInterface> 329 std::unique_ptr<display_compositor::ReadbackYUVInterface>
329 yuv_readback_pipeline_; 330 yuv_readback_pipeline_;
330 331
331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
332 }; 333 };
333 334
334 } // namespace content 335 } // namespace content
335 336
336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698