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

Side by Side Diff: content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.h

Issue 411023002: content: Fix incorrect GpuMemoryBufferFactoryX11Pixmap comment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 GpuMemoryBufferFactoryX11Pixmap(); 22 GpuMemoryBufferFactoryX11Pixmap();
23 ~GpuMemoryBufferFactoryX11Pixmap(); 23 ~GpuMemoryBufferFactoryX11Pixmap();
24 24
25 // Create a GPU memory buffer for an existing X11 pixmap. 25 // Create a GPU memory buffer for an existing X11 pixmap.
26 void CreateGpuMemoryBuffer(const gfx::GpuMemoryBufferId& id, XID pixmap); 26 void CreateGpuMemoryBuffer(const gfx::GpuMemoryBufferId& id, XID pixmap);
27 27
28 // Destroy a previously created GPU memory buffer. 28 // Destroy a previously created GPU memory buffer.
29 void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferId& id); 29 void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferId& id);
30 30
31 // Creates a GLImage instance for a GPU memory buffer. Successful completion 31 // Creates a GLImage instance for a GPU memory buffer.
32 // moves ownership of GPU memory buffer to GLImage instance.
33 scoped_refptr<gfx::GLImage> AcquireImageForGpuMemoryBuffer( 32 scoped_refptr<gfx::GLImage> AcquireImageForGpuMemoryBuffer(
34 const gfx::GpuMemoryBufferId& id, 33 const gfx::GpuMemoryBufferId& id,
35 const gfx::Size& size, 34 const gfx::Size& size,
36 unsigned internalformat); 35 unsigned internalformat);
37 36
38 private: 37 private:
39 typedef std::pair<int, int> X11PixmapMapKey; 38 typedef std::pair<int, int> X11PixmapMapKey;
40 typedef base::hash_map<X11PixmapMapKey, XID> X11PixmapMap; 39 typedef base::hash_map<X11PixmapMapKey, XID> X11PixmapMap;
41 X11PixmapMap pixmaps_; 40 X11PixmapMap pixmaps_;
42 }; 41 };
43 42
44 } // namespace content 43 } // namespace content
45 44
46 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ 45 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698