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

Unified Diff: content/browser/gpu/gpu_surface_tracker.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 | « no previous file | content/browser/gpu/gpu_surface_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_surface_tracker.h
diff --git a/content/browser/gpu/gpu_surface_tracker.h b/content/browser/gpu/gpu_surface_tracker.h
index 88f575ae50d82b6b9f8fcf5b0491c094b5cb1f51..112655cffbbc1b122ad4c3322c9bbe73df1e57cb 100644
--- a/content/browser/gpu/gpu_surface_tracker.h
+++ b/content/browser/gpu/gpu_surface_tracker.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/singleton.h"
#include "base/synchronization/lock.h"
+#include "content/common/gpu/gpu_surface_lookup.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
@@ -22,8 +23,12 @@
// Note: The ID can exist before the actual native handle for the surface is
// created, for example to allow giving a reference to it to a renderer, so that
// it is unamibiguously identified.
-class GpuSurfaceTracker {
+class GpuSurfaceTracker : public GpuSurfaceLookup {
public:
+ // GpuSurfaceLookup implementation:
+ // Returns the native widget associated with a given surface_id.
+ virtual gfx::AcceleratedWidget GetNativeWidget(int surface_id) OVERRIDE;
+
// Gets the global instance of the surface tracker.
static GpuSurfaceTracker* Get() { return GetInstance(); }
@@ -78,7 +83,7 @@ class GpuSurfaceTracker {
friend struct DefaultSingletonTraits<GpuSurfaceTracker>;
GpuSurfaceTracker();
- ~GpuSurfaceTracker();
+ virtual ~GpuSurfaceTracker();
base::Lock lock_;
SurfaceMap surface_map_;
« no previous file with comments | « no previous file | content/browser/gpu/gpu_surface_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698