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

Side by Side Diff: ui/gl/x11_pixmap_tracker.h

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include x11 pixmap tracker Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
reveman 2014/06/13 16:45:11 Maybe move this into a ui/gl/x/ sub directory..
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698