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

Side by Side Diff: gpu/ipc/client/gpu_memory_buffer_impl.h

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 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
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | gpu/ipc/client/gpu_memory_buffer_impl.cc » ('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 CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_ 5 #ifndef GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_ 6 #define GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/common/content_export.h"
12 #include "gpu/command_buffer/common/sync_token.h" 11 #include "gpu/command_buffer/common/sync_token.h"
12 #include "gpu/gpu_export.h"
13 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
14 #include "ui/gfx/gpu_memory_buffer.h" 14 #include "ui/gfx/gpu_memory_buffer.h"
15 15
16 namespace content { 16 namespace gpu {
17 17
18 // Provides common implementation of a GPU memory buffer. 18 // Provides common implementation of a GPU memory buffer.
19 class CONTENT_EXPORT GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer { 19 class GPU_EXPORT GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
20 public: 20 public:
21 typedef base::Callback<void(const gpu::SyncToken& sync)> DestructionCallback; 21 typedef base::Callback<void(const gpu::SyncToken& sync)> DestructionCallback;
22 22
23 ~GpuMemoryBufferImpl() override; 23 ~GpuMemoryBufferImpl() override;
24 24
25 // Creates an instance from the given |handle|. |size| and |internalformat| 25 // Creates an instance from the given |handle|. |size| and |internalformat|
26 // should match what was used to allocate the |handle|. |callback| is 26 // should match what was used to allocate the |handle|. |callback| is
27 // called when instance is deleted, which is not necessarily on the same 27 // called when instance is deleted, which is not necessarily on the same
28 // thread as this function was called on and instance was created on. 28 // thread as this function was called on and instance was created on.
29 static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle( 29 static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle(
(...skipping 26 matching lines...) Expand all
56 const gfx::Size size_; 56 const gfx::Size size_;
57 const gfx::BufferFormat format_; 57 const gfx::BufferFormat format_;
58 const DestructionCallback callback_; 58 const DestructionCallback callback_;
59 bool mapped_; 59 bool mapped_;
60 gpu::SyncToken destruction_sync_token_; 60 gpu::SyncToken destruction_sync_token_;
61 61
62 private: 62 private:
63 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImpl); 63 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImpl);
64 }; 64 };
65 65
66 } // namespace content 66 } // namespace gpu
67 67
68 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_ 68 #endif // GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | gpu/ipc/client/gpu_memory_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698