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

Unified Diff: content/common/gpu/gpu_surface_lookup.h

Issue 10795058: Add GL surface creation for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/browser/gpu/gpu_surface_tracker.cc ('k') | content/common/gpu/gpu_surface_lookup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_surface_lookup.h
diff --git a/content/common/gpu/gpu_surface_lookup.h b/content/common/gpu/gpu_surface_lookup.h
new file mode 100644
index 0000000000000000000000000000000000000000..5ffaf619117e466f1f41fa6edf1958e4fff631bb
--- /dev/null
+++ b/content/common/gpu/gpu_surface_lookup.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 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 CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
+#define CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
+
+#include "ui/gfx/native_widget_types.h"
+
+// This class provides an interface to look up window surface handles
+// that cannot be sent through the IPC channel.
+class GpuSurfaceLookup {
+ public:
+ GpuSurfaceLookup() { }
+ virtual ~GpuSurfaceLookup() { }
+
+ static GpuSurfaceLookup* GetInstance();
+ static void InitInstance(GpuSurfaceLookup* lookup);
+
+ virtual gfx::AcceleratedWidget GetNativeWidget(int surface_id) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GpuSurfaceLookup);
+};
+
+#endif // CONTENT_COMMON_GPU_GPU_SURFACE_LOOKUP_H_
« no previous file with comments | « content/browser/gpu/gpu_surface_tracker.cc ('k') | content/common/gpu/gpu_surface_lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698