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

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

Issue 2036563002: Delete OnscreenDisplayClient and TopLevelDisplayClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: onscreendisplayclient: webview-scoped-allow-gl-for-hardwarerenderer-constructor Created 4 years, 6 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 OutputSurfaceLost() override {} 45 void DisplayOutputSurfaceLost() override {}
46 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} 46 void DisplaySetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {}
47 47
48 // cc::SurfaceFactoryClient implementation. 48 // cc::SurfaceFactoryClient implementation.
49 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 49 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
50 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 50 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
51 51
52 void ReturnResourcesInChildFrame(); 52 void ReturnResourcesInChildFrame();
53 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, 53 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources,
54 uint32_t compositor_routing_id, 54 uint32_t compositor_routing_id,
55 uint32_t output_surface_id); 55 uint32_t output_surface_id);
56 56
(...skipping 29 matching lines...) Expand all
86 86
87 // This is owned by |display_|. 87 // This is owned by |display_|.
88 ParentOutputSurface* output_surface_; 88 ParentOutputSurface* output_surface_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 90 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
91 }; 91 };
92 92
93 } // namespace android_webview 93 } // namespace android_webview
94 94
95 #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