Disable flaky EndToEndTest.LargePostSmallBandwidthLargeBuffer
[chromium-blink-merge.git] / android_webview / browser / hardware_renderer_legacy.h
bloba92fe9b32a8608593d59042299c1253417177643
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.
5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_
8 #include "android_webview/browser/hardware_renderer_interface.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
12 struct AwDrawGLInfo;
14 namespace android_webview {
16 class AwGLSurface;
17 class SharedRendererState;
18 struct DrawGLInput;
20 class HardwareRendererLegacy : public HardwareRendererInterface {
21 public:
22 explicit HardwareRendererLegacy(SharedRendererState* state);
23 virtual ~HardwareRendererLegacy();
25 virtual bool DrawGL(bool stencil_enabled,
26 int framebuffer_binding_ext,
27 AwDrawGLInfo* draw_info,
28 DrawGLResult* result) OVERRIDE;
30 private:
31 void SetCompositorMemoryPolicy();
33 SharedRendererState* shared_renderer_state_;
34 scoped_ptr<DrawGLInput> draw_gl_input_;
36 typedef void* EGLContext;
37 EGLContext last_egl_context_;
39 scoped_refptr<AwGLSurface> gl_surface_;
41 DISALLOW_COPY_AND_ASSIGN(HardwareRendererLegacy);
44 } // namespace android_webview
46 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_