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

Side by Side Diff: android_webview/browser/surfaces_instance.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SURFACES_INSTANCE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_
6 #define ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ~SurfacesInstance() override; 58 ~SurfacesInstance() override;
59 59
60 // cc::DisplayClient overrides. 60 // cc::DisplayClient overrides.
61 void DisplayOutputSurfaceLost() override; 61 void DisplayOutputSurfaceLost() override;
62 void DisplayWillDrawAndSwap( 62 void DisplayWillDrawAndSwap(
63 bool will_draw_and_swap, 63 bool will_draw_and_swap,
64 const cc::RenderPassList& render_passes) override {} 64 const cc::RenderPassList& render_passes) override {}
65 void DisplayDidDrawAndSwap() override {} 65 void DisplayDidDrawAndSwap() override {}
66 66
67 // cc::CompositorFrameSinkSupportClient implementation. 67 // cc::CompositorFrameSinkSupportClient implementation.
68 void DidReceiveCompositorFrameAck() override; 68 void DidReceiveCompositorFrameAck(
69 const cc::ReturnedResourceArray& resources) override;
69 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 70 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
70 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, 71 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
71 const gfx::Rect& damage_rect) override; 72 const gfx::Rect& damage_rect) override;
72 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 73 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
73 74
74 void SetEmptyRootFrame(); 75 void SetEmptyRootFrame();
75 76
76 cc::FrameSinkIdAllocator frame_sink_id_allocator_; 77 cc::FrameSinkIdAllocator frame_sink_id_allocator_;
77 78
78 cc::FrameSinkId frame_sink_id_; 79 cc::FrameSinkId frame_sink_id_;
79 80
80 std::unique_ptr<cc::SurfaceManager> surface_manager_; 81 std::unique_ptr<cc::SurfaceManager> surface_manager_;
81 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; 82 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
82 std::unique_ptr<cc::Display> display_; 83 std::unique_ptr<cc::Display> display_;
83 std::unique_ptr<cc::LocalSurfaceIdAllocator> local_surface_id_allocator_; 84 std::unique_ptr<cc::LocalSurfaceIdAllocator> local_surface_id_allocator_;
84 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; 85 std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
85 86
86 cc::LocalSurfaceId root_id_; 87 cc::LocalSurfaceId root_id_;
87 std::vector<cc::SurfaceId> child_ids_; 88 std::vector<cc::SurfaceId> child_ids_;
88 89
89 // This is owned by |display_|. 90 // This is owned by |display_|.
90 ParentOutputSurface* output_surface_; 91 ParentOutputSurface* output_surface_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); 93 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance);
93 }; 94 };
94 95
95 } // namespace android_webview 96 } // namespace android_webview
96 97
97 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ 98 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698