forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardware_renderer_legacy.h
46 lines (32 loc) · 1.28 KB
/
hardware_renderer_legacy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_
#define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_
#include "android_webview/browser/hardware_renderer_interface.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
struct AwDrawGLInfo;
namespace android_webview {
class AwGLSurface;
class SharedRendererState;
struct DrawGLInput;
class HardwareRendererLegacy : public HardwareRendererInterface {
public:
explicit HardwareRendererLegacy(SharedRendererState* state);
virtual ~HardwareRendererLegacy();
virtual bool DrawGL(bool stencil_enabled,
int framebuffer_binding_ext,
AwDrawGLInfo* draw_info,
DrawGLResult* result) OVERRIDE;
private:
void SetCompositorMemoryPolicy();
SharedRendererState* shared_renderer_state_;
scoped_ptr<DrawGLInput> draw_gl_input_;
typedef void* EGLContext;
EGLContext last_egl_context_;
scoped_refptr<AwGLSurface> gl_surface_;
DISALLOW_COPY_AND_ASSIGN(HardwareRendererLegacy);
};
} // namespace android_webview
#endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_