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

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

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Display member destruction order Created 4 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
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.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 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/render_thread_manager.h" 10 #include "android_webview/browser/render_thread_manager.h"
(...skipping 24 matching lines...) Expand all
35 explicit HardwareRenderer(RenderThreadManager* state); 35 explicit HardwareRenderer(RenderThreadManager* state);
36 ~HardwareRenderer() override; 36 ~HardwareRenderer() override;
37 37
38 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state); 38 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state);
39 void CommitFrame(); 39 void CommitFrame();
40 40
41 void SetBackingFrameBufferObject(int framebuffer_binding_ext); 41 void SetBackingFrameBufferObject(int framebuffer_binding_ext);
42 42
43 private: 43 private:
44 // cc::DisplayClient overrides. 44 // cc::DisplayClient overrides.
45 void CommitVSyncParameters(base::TimeTicks timebase,
46 base::TimeDelta interval) override {}
47 void OutputSurfaceLost() override {} 45 void OutputSurfaceLost() override {}
48 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} 46 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {}
49 47
50 // cc::SurfaceFactoryClient implementation. 48 // cc::SurfaceFactoryClient implementation.
51 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 49 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
52 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 50 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
53 51
54 void ReturnResourcesInChildFrame(); 52 void ReturnResourcesInChildFrame();
55 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, 53 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources,
56 uint32_t compositor_routing_id, 54 uint32_t compositor_routing_id,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 86
89 // This is owned by |display_|. 87 // This is owned by |display_|.
90 ParentOutputSurface* output_surface_; 88 ParentOutputSurface* output_surface_;
91 89
92 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 90 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
93 }; 91 };
94 92
95 } // namespace android_webview 93 } // namespace android_webview
96 94
97 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 95 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698