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

Side by Side Diff: android_webview/browser/surfaces_instance.h

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c Created 3 years, 10 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
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // cc::DisplayClient overrides. 59 // cc::DisplayClient overrides.
60 void DisplayOutputSurfaceLost() override; 60 void DisplayOutputSurfaceLost() override;
61 void DisplayWillDrawAndSwap( 61 void DisplayWillDrawAndSwap(
62 bool will_draw_and_swap, 62 bool will_draw_and_swap,
63 const cc::RenderPassList& render_passes) override {} 63 const cc::RenderPassList& render_passes) override {}
64 void DisplayDidDrawAndSwap() override {} 64 void DisplayDidDrawAndSwap() override {}
65 65
66 // cc::CompositorFrameSinkSupportClient implementation. 66 // cc::CompositorFrameSinkSupportClient implementation.
67 void DidReceiveCompositorFrameAck() override; 67 void DidReceiveCompositorFrameAck() override;
68 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 68 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
69 void WillDrawSurface() override; 69 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
70 const gfx::Rect& damage_rect) override;
70 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 71 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
71 72
72 void SetEmptyRootFrame(); 73 void SetEmptyRootFrame();
73 74
74 uint32_t next_client_id_; 75 uint32_t next_client_id_;
75 76
76 cc::FrameSinkId frame_sink_id_; 77 cc::FrameSinkId frame_sink_id_;
77 78
78 std::unique_ptr<cc::SurfaceManager> surface_manager_; 79 std::unique_ptr<cc::SurfaceManager> surface_manager_;
79 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; 80 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
80 std::unique_ptr<cc::Display> display_; 81 std::unique_ptr<cc::Display> display_;
81 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 82 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
82 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; 83 std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
83 84
84 cc::LocalSurfaceId root_id_; 85 cc::LocalSurfaceId root_id_;
85 std::vector<cc::SurfaceId> child_ids_; 86 std::vector<cc::SurfaceId> child_ids_;
86 87
87 // This is owned by |display_|. 88 // This is owned by |display_|.
88 ParentOutputSurface* output_surface_; 89 ParentOutputSurface* output_surface_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); 91 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance);
91 }; 92 };
92 93
93 } // namespace android_webview 94 } // namespace android_webview
94 95
95 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ 96 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698