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

Side by Side Diff: content/renderer/android/synchronous_compositor_frame_sink.h

Issue 2720803002: Pass returned resources to DidReceiveCompositorFrameAck (Closed)
Patch Set: c Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void SubmitCompositorFrame(cc::CompositorFrame frame) override; 88 void SubmitCompositorFrame(cc::CompositorFrame frame) override;
89 void Invalidate() override; 89 void Invalidate() override;
90 90
91 // Partial SynchronousCompositor API implementation. 91 // Partial SynchronousCompositor API implementation.
92 void DemandDrawHw(const gfx::Size& viewport_size, 92 void DemandDrawHw(const gfx::Size& viewport_size,
93 const gfx::Rect& viewport_rect_for_tile_priority, 93 const gfx::Rect& viewport_rect_for_tile_priority,
94 const gfx::Transform& transform_for_tile_priority); 94 const gfx::Transform& transform_for_tile_priority);
95 void DemandDrawSw(SkCanvas* canvas); 95 void DemandDrawSw(SkCanvas* canvas);
96 96
97 // CompositorFrameSinkSupportClient implementation. 97 // CompositorFrameSinkSupportClient implementation.
98 void DidReceiveCompositorFrameAck() override; 98 void DidReceiveCompositorFrameAck(
99 const cc::ReturnedResourceArray& resources) override;
99 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 100 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
100 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 101 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
101 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, 102 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
102 const gfx::Rect& damage_rect) override; 103 const gfx::Rect& damage_rect) override;
103 104
104 private: 105 private:
105 class SoftwareOutputSurface; 106 class SoftwareOutputSurface;
106 107
107 void InvokeComposite(const gfx::Transform& transform, 108 void InvokeComposite(const gfx::Transform& transform,
108 const gfx::Rect& viewport); 109 const gfx::Rect& viewport);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 gfx::Rect sw_viewport_for_current_draw_; 169 gfx::Rect sw_viewport_for_current_draw_;
169 170
170 base::ThreadChecker thread_checker_; 171 base::ThreadChecker thread_checker_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); 173 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink);
173 }; 174 };
174 175
175 } // namespace content 176 } // namespace content
176 177
177 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ 178 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698