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/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 |
OLD | NEW |