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

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

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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_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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void DeleteHardwareRendererOnUI() override; 58 void DeleteHardwareRendererOnUI() override;
59 59
60 // RT thread methods. 60 // RT thread methods.
61 gfx::Vector2d GetScrollOffsetOnRT(); 61 gfx::Vector2d GetScrollOffsetOnRT();
62 std::unique_ptr<ChildFrame> PassFrameOnRT(); 62 std::unique_ptr<ChildFrame> PassFrameOnRT();
63 void DrawGL(AwDrawGLInfo* draw_info); 63 void DrawGL(AwDrawGLInfo* draw_info);
64 void PostExternalDrawConstraintsToChildCompositorOnRT( 64 void PostExternalDrawConstraintsToChildCompositorOnRT(
65 const ParentCompositorDrawConstraints& parent_draw_constraints); 65 const ParentCompositorDrawConstraints& parent_draw_constraints);
66 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources, 66 void InsertReturnedResourcesOnRT(const cc::ReturnedResourceArray& resources,
67 const CompositorID& compositor_id, 67 const CompositorID& compositor_id,
68 uint32_t output_surface_id); 68 uint32_t compositor_frame_sink_id);
69 69
70 private: 70 private:
71 friend class internal::RequestInvokeGLTracker; 71 friend class internal::RequestInvokeGLTracker;
72 class InsideHardwareReleaseReset { 72 class InsideHardwareReleaseReset {
73 public: 73 public:
74 explicit InsideHardwareReleaseReset( 74 explicit InsideHardwareReleaseReset(
75 RenderThreadManager* render_thread_manager); 75 RenderThreadManager* render_thread_manager);
76 ~InsideHardwareReleaseReset(); 76 ~InsideHardwareReleaseReset();
77 77
78 private: 78 private:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 base::Closure request_draw_gl_closure_; 114 base::Closure request_draw_gl_closure_;
115 115
116 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; 116 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); 118 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager);
119 }; 119 };
120 120
121 } // namespace android_webview 121 } // namespace android_webview
122 122
123 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 123 #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