Index: ui/gl/x11_pixmap_tracker.h |
diff --git a/ui/gl/x11_pixmap_tracker.h b/ui/gl/x11_pixmap_tracker.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..09c1046c782f94c3d1132e0205d5a2f6dc2df7b1 |
--- /dev/null |
+++ b/ui/gl/x11_pixmap_tracker.h |
@@ -0,0 +1,28 @@ |
+// 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 UI_GL_X11_PIXMAP_TRACKER_H_ |
+#define UI_GL_X11_PIXMAP_TRACKER_H_ |
reveman
2014/06/13 16:45:11
Maybe move this into a ui/gl/x/ sub directory..
|
+ |
+#include "ui/gfx/x/x11_types.h" |
+#include "ui/gl/gl_export.h" |
+ |
+namespace gfx { |
+ |
+// This interface is used to take ownership of preallocated pixmaps with |
+// specific ids. |
+class GL_EXPORT X11PixmapTracker { |
+ public: |
+ static X11PixmapTracker* GetInstance(); |
+ static void InitInstance(X11PixmapTracker* tracker); |
+ |
+ virtual XID AcquirePixmap(int primary_id, int secondary_id) = 0; |
+ |
+ protected: |
+ virtual ~X11PixmapTracker() {} |
+}; |
+ |
+} // namespace gfx |
+ |
+#endif // UI_GL_X11_PIXMAP_TRACKER_H_ |