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 UI_GL_X11_PIXMAP_TRACKER_H_ |
| 6 #define UI_GL_X11_PIXMAP_TRACKER_H_ |
| 7 |
| 8 #include "ui/gfx/x/x11_types.h" |
| 9 #include "ui/gl/gl_export.h" |
| 10 |
| 11 namespace gfx { |
| 12 |
| 13 // This interface is used to take ownership of preallocated pixmaps with |
| 14 // specific ids. |
| 15 class GL_EXPORT X11PixmapTracker { |
| 16 public: |
| 17 static X11PixmapTracker* GetInstance(); |
| 18 static void InitInstance(X11PixmapTracker* tracker); |
| 19 |
| 20 virtual XID AcquirePixmap(int primary_id, int secondary_id) = 0; |
| 21 |
| 22 protected: |
| 23 virtual ~X11PixmapTracker() {} |
| 24 }; |
| 25 |
| 26 } // namespace gfx |
| 27 |
| 28 #endif // UI_GL_X11_PIXMAP_TRACKER_H_ |
OLD | NEW |