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

Unified Diff: android_webview/browser/hardware_renderer_legacy.h

Issue 287993004: [Android WebView] Implement Ubercomp for Render Thread support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/hardware_renderer_legacy.h
diff --git a/android_webview/browser/hardware_renderer_legacy.h b/android_webview/browser/hardware_renderer_legacy.h
new file mode 100644
index 0000000000000000000000000000000000000000..a92fe9b32a8608593d59042299c1253417177643
--- /dev/null
+++ b/android_webview/browser/hardware_renderer_legacy.h
@@ -0,0 +1,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_

Powered by Google App Engine
This is Rietveld 408576698