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

Side by Side Diff: gpu/ipc/client/gpu_memory_buffer_impl_surface_texture.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
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_CLIENT_GPU_MEMORY_BUFFER_IMPL_SURFACE_TEXTURE_H_ 5 #ifndef GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SURFACE_TEXTURE_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SURFACE_TEXTURE_H_ 6 #define GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SURFACE_TEXTURE_H_
7 7
8 #include <android/native_window.h> 8 #include <android/native_window.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/common/content_export.h" 12 #include "gpu/gpu_export.h"
13 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" 13 #include "gpu/ipc/client/gpu_memory_buffer_impl.h"
14 14
15 namespace content { 15 namespace gpu {
16 16
17 // Implementation of GPU memory buffer based on SurfaceTextures. 17 // Implementation of GPU memory buffer based on SurfaceTextures.
18 class CONTENT_EXPORT GpuMemoryBufferImplSurfaceTexture 18 class GPU_EXPORT GpuMemoryBufferImplSurfaceTexture
19 : public GpuMemoryBufferImpl { 19 : public GpuMemoryBufferImpl {
20 public: 20 public:
21 ~GpuMemoryBufferImplSurfaceTexture() override; 21 ~GpuMemoryBufferImplSurfaceTexture() override;
22 22
23 static scoped_ptr<GpuMemoryBufferImplSurfaceTexture> CreateFromHandle( 23 static scoped_ptr<GpuMemoryBufferImplSurfaceTexture> CreateFromHandle(
24 const gfx::GpuMemoryBufferHandle& handle, 24 const gfx::GpuMemoryBufferHandle& handle,
25 const gfx::Size& size, 25 const gfx::Size& size,
26 gfx::BufferFormat format, 26 gfx::BufferFormat format,
27 gfx::BufferUsage usage, 27 gfx::BufferUsage usage,
28 const DestructionCallback& callback); 28 const DestructionCallback& callback);
(...skipping 19 matching lines...) Expand all
48 gfx::BufferFormat format, 48 gfx::BufferFormat format,
49 const DestructionCallback& callback, 49 const DestructionCallback& callback,
50 ANativeWindow* native_window); 50 ANativeWindow* native_window);
51 51
52 ANativeWindow* native_window_; 52 ANativeWindow* native_window_;
53 ANativeWindow_Buffer buffer_; 53 ANativeWindow_Buffer buffer_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSurfaceTexture); 55 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSurfaceTexture);
56 }; 56 };
57 57
58 } // namespace content 58 } // namespace gpu
59 59
60 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SURFACE_TEXTURE_H_ 60 #endif // GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SURFACE_TEXTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698