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

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

Issue 2418383002: sync compositor: Signal async frame on IO thread (Closed)
Patch Set: typo Created 4 years, 1 month 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_RENDER_THREAD_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "android_webview/browser/compositor_frame_consumer.h" 10 #include "android_webview/browser/compositor_frame_consumer.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 frame_future) override; 53 frame_future) override;
54 void InitializeHardwareDrawIfNeededOnUI() override; 54 void InitializeHardwareDrawIfNeededOnUI() override;
55 ParentCompositorDrawConstraints GetParentDrawConstraintsOnUI() const override; 55 ParentCompositorDrawConstraints GetParentDrawConstraintsOnUI() const override;
56 void SwapReturnedResourcesOnUI( 56 void SwapReturnedResourcesOnUI(
57 ReturnedResourcesMap* returned_resource_map) override; 57 ReturnedResourcesMap* returned_resource_map) override;
58 bool ReturnedResourcesEmptyOnUI() const override; 58 bool ReturnedResourcesEmptyOnUI() const override;
59 std::unique_ptr<ChildFrame> PassUncommittedFrameOnUI() override; 59 std::unique_ptr<ChildFrame> PassUncommittedFrameOnUI() override;
60 bool HasFrameOnUI() const override; 60 bool HasFrameOnUI() const override;
61 void DeleteHardwareRendererOnUI() override; 61 void DeleteHardwareRendererOnUI() override;
62 62
63 // RT thread methods. 63 // Render thread methods.
64 gfx::Vector2d GetScrollOffsetOnRT(); 64 gfx::Vector2d GetScrollOffsetOnRT();
65 std::unique_ptr<ChildFrame> PassFrameOnRT(); 65 std::unique_ptr<ChildFrame> PassFrameOnRT();
66 scoped_refptr<content::SynchronousCompositor::FrameFuture>
67 PassFrameFutureOnRT();
66 void DrawGL(AwDrawGLInfo* draw_info); 68 void DrawGL(AwDrawGLInfo* draw_info);
67 void PostExternalDrawConstraintsToChildCompositorOnRT( 69 void PostExternalDrawConstraintsToChildCompositorOnRT(
68 const ParentCompositorDrawConstraints& parent_draw_constraints); 70 const ParentCompositorDrawConstraints& parent_draw_constraints);
69 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources, 71 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources,
70 const CompositorID& compositor_id, 72 const CompositorID& compositor_id,
71 uint32_t compositor_frame_sink_id); 73 uint32_t compositor_frame_sink_id);
72 74
73 private: 75 private:
74 friend class internal::RequestInvokeGLTracker; 76 friend class internal::RequestInvokeGLTracker;
75 class InsideHardwareReleaseReset { 77 class InsideHardwareReleaseReset {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 base::Closure request_draw_gl_closure_; 124 base::Closure request_draw_gl_closure_;
123 125
124 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; 126 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); 128 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager);
127 }; 129 };
128 130
129 } // namespace android_webview 131 } // namespace android_webview
130 132
131 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 133 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/render_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698