OLD | NEW |
(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/hardware_renderer_interface.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 12 struct AwDrawGLInfo; |
| 13 |
| 14 namespace android_webview { |
| 15 |
| 16 class AwGLSurface; |
| 17 class SharedRendererState; |
| 18 struct DrawGLInput; |
| 19 |
| 20 class HardwareRendererLegacy : public HardwareRendererInterface { |
| 21 public: |
| 22 explicit HardwareRendererLegacy(SharedRendererState* state); |
| 23 virtual ~HardwareRendererLegacy(); |
| 24 |
| 25 virtual bool DrawGL(bool stencil_enabled, |
| 26 int framebuffer_binding_ext, |
| 27 AwDrawGLInfo* draw_info, |
| 28 DrawGLResult* result) OVERRIDE; |
| 29 |
| 30 private: |
| 31 void SetCompositorMemoryPolicy(); |
| 32 |
| 33 SharedRendererState* shared_renderer_state_; |
| 34 scoped_ptr<DrawGLInput> draw_gl_input_; |
| 35 |
| 36 typedef void* EGLContext; |
| 37 EGLContext last_egl_context_; |
| 38 |
| 39 scoped_refptr<AwGLSurface> gl_surface_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(HardwareRendererLegacy); |
| 42 }; |
| 43 |
| 44 } // namespace android_webview |
| 45 |
| 46 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_LEGACY_H_ |
OLD | NEW |