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

Side by Side Diff: ui/gfx/gpu_memory_buffer.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 2 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 | « ui/gfx/gfx_paths.h ('k') | ui/gfx/gtk_native_view_id_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_GFX_GPU_MEMORY_BUFFER_H_ 5 #ifndef UI_GFX_GPU_MEMORY_BUFFER_H_
6 #define UI_GFX_GPU_MEMORY_BUFFER_H_ 6 #define UI_GFX_GPU_MEMORY_BUFFER_H_
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ui/gfx/gfx_export.h" 10 #include "ui/gfx/gfx_export.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Interface for creating and accessing a zero-copy GPU memory buffer. 41 // Interface for creating and accessing a zero-copy GPU memory buffer.
42 // This design evolved from the generalization of GraphicBuffer API 42 // This design evolved from the generalization of GraphicBuffer API
43 // of Android framework. 43 // of Android framework.
44 // 44 //
45 // THREADING CONSIDERATIONS: 45 // THREADING CONSIDERATIONS:
46 // 46 //
47 // This interface is thread-safe. However, multiple threads mapping 47 // This interface is thread-safe. However, multiple threads mapping
48 // a buffer for Write or ReadOrWrite simultaneously may result in undefined 48 // a buffer for Write or ReadOrWrite simultaneously may result in undefined
49 // behavior and is not allowed. 49 // behavior and is not allowed.
50 class UI_EXPORT GpuMemoryBuffer { 50 class GFX_EXPORT GpuMemoryBuffer {
51 public: 51 public:
52 enum AccessMode { 52 enum AccessMode {
53 READ_ONLY, 53 READ_ONLY,
54 WRITE_ONLY, 54 WRITE_ONLY,
55 READ_WRITE, 55 READ_WRITE,
56 }; 56 };
57 57
58 GpuMemoryBuffer(); 58 GpuMemoryBuffer();
59 virtual ~GpuMemoryBuffer(); 59 virtual ~GpuMemoryBuffer();
60 60
(...skipping 12 matching lines...) Expand all
73 // Returns the stride in bytes for the buffer. 73 // Returns the stride in bytes for the buffer.
74 virtual uint32 GetStride() const = 0; 74 virtual uint32 GetStride() const = 0;
75 75
76 // Returns a platform specific handle for this buffer. 76 // Returns a platform specific handle for this buffer.
77 virtual GpuMemoryBufferHandle GetHandle() const = 0; 77 virtual GpuMemoryBufferHandle GetHandle() const = 0;
78 }; 78 };
79 79
80 } // namespace gfx 80 } // namespace gfx
81 81
82 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ 82 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_
OLDNEW
« no previous file with comments | « ui/gfx/gfx_paths.h ('k') | ui/gfx/gtk_native_view_id_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698