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

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

Issue 2361903003: aw: Fix FBO restore bug (Closed)
Patch Set: 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
« 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/compositor_id.h" 10 #include "android_webview/browser/compositor_id.h"
(...skipping 13 matching lines...) Expand all
24 24
25 namespace android_webview { 25 namespace android_webview {
26 26
27 class ChildFrame; 27 class ChildFrame;
28 class RenderThreadManager; 28 class RenderThreadManager;
29 class ScopedAppGLStateRestore; 29 class ScopedAppGLStateRestore;
30 class SurfacesInstance; 30 class SurfacesInstance;
31 31
32 class HardwareRenderer : public cc::SurfaceFactoryClient { 32 class HardwareRenderer : public cc::SurfaceFactoryClient {
33 public: 33 public:
34 explicit HardwareRenderer(RenderThreadManager* state); 34 HardwareRenderer(RenderThreadManager* state, int framebuffer_binding_ext);
35 ~HardwareRenderer() override; 35 ~HardwareRenderer() override;
36 36
37 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state); 37 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state);
38 void CommitFrame(); 38 void CommitFrame();
39 39
40 void SetBackingFrameBufferObject(int framebuffer_binding_ext); 40 void SetBackingFrameBufferObject(int framebuffer_binding_ext);
41 41
42 private: 42 private:
43 // cc::SurfaceFactoryClient implementation. 43 // cc::SurfaceFactoryClient implementation.
44 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 44 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // output_surface_id, and resources for old output surfaces are dropped. 77 // output_surface_id, and resources for old output surfaces are dropped.
78 uint32_t last_committed_output_surface_id_; 78 uint32_t last_committed_output_surface_id_;
79 uint32_t last_submitted_output_surface_id_; 79 uint32_t last_submitted_output_surface_id_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
82 }; 82 };
83 83
84 } // namespace android_webview 84 } // namespace android_webview
85 85
86 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 86 #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