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

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

Issue 266353003: aw: Ubercomp mega patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_
7
8 #include "android_webview/browser/gl_view_renderer_manager.h"
9 #include "android_webview/browser/hardware_renderer_interface.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12
13 struct AwDrawGLInfo;
14
15 namespace android_webview {
16
17 class AwGLSurface;
18 class SharedRendererState;
19 struct DrawGLInput;
20
21 class HardwareRendererLegacy : public HardwareRendererInterface {
22 public:
23 explicit HardwareRendererLegacy(SharedRendererState* state);
24 virtual ~HardwareRendererLegacy();
25
26 virtual bool DrawGL(bool stencil_enabled,
27 int framebuffer_binding_ext,
28 AwDrawGLInfo* draw_info,
29 DrawGLResult* result) OVERRIDE;
30
31 private:
32 void SetCompositorMemoryPolicy();
33
34 SharedRendererState* shared_renderer_state_;
35 scoped_ptr<DrawGLInput> draw_gl_input_;
36
37 typedef void* EGLContext;
38 EGLContext last_egl_context_;
39
40 scoped_refptr<AwGLSurface> gl_surface_;
41
42 GLViewRendererManager::Key renderer_manager_key_;
43
44 DISALLOW_COPY_AND_ASSIGN(HardwareRendererLegacy);
45 };
46
47 } // namespace android_webview
48
49 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_
50
51
OLDNEW
« no previous file with comments | « android_webview/browser/hardware_renderer_interface.h ('k') | android_webview/browser/hardware_renderer_legacy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698