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

Side by Side Diff: android_webview/browser/hardware_renderer.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 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 ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "android_webview/browser/child_frame.h" 10 #include "android_webview/browser/child_frame.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 static ChildFrameQueue WaitAndPruneFrameQueue(ChildFrameQueue* child_frames); 43 static ChildFrameQueue WaitAndPruneFrameQueue(ChildFrameQueue* child_frames);
44 44
45 explicit HardwareRenderer(RenderThreadManager* state); 45 explicit HardwareRenderer(RenderThreadManager* state);
46 ~HardwareRenderer() override; 46 ~HardwareRenderer() override;
47 47
48 void DrawGL(AwDrawGLInfo* draw_info); 48 void DrawGL(AwDrawGLInfo* draw_info);
49 void CommitFrame(); 49 void CommitFrame();
50 50
51 private: 51 private:
52 // cc::CompositorFrameSinkSupportClient implementation. 52 // cc::CompositorFrameSinkSupportClient implementation.
53 void DidReceiveCompositorFrameAck() override; 53 void DidReceiveCompositorFrameAck(
54 const cc::ReturnedResourceArray& resources) override;
54 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 55 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
55 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
56 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, 57 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
57 const gfx::Rect& damage_rect) override; 58 const gfx::Rect& damage_rect) override;
58 59
59 void ReturnChildFrame(std::unique_ptr<ChildFrame> child_frame); 60 void ReturnChildFrame(std::unique_ptr<ChildFrame> child_frame);
60 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, 61 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources,
61 const CompositorID& compositor_id, 62 const CompositorID& compositor_id,
62 uint32_t compositor_frame_sink_id); 63 uint32_t compositor_frame_sink_id);
63 64
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // dropped. 97 // dropped.
97 uint32_t last_committed_compositor_frame_sink_id_; 98 uint32_t last_committed_compositor_frame_sink_id_;
98 uint32_t last_submitted_compositor_frame_sink_id_; 99 uint32_t last_submitted_compositor_frame_sink_id_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 101 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
101 }; 102 };
102 103
103 } // namespace android_webview 104 } // namespace android_webview
104 105
105 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 106 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | cc/ipc/mojo_compositor_frame_sink.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698