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

Side by Side Diff: content/common/gpu/client/gpu_memory_buffer_factory_host.h

Issue 302603004: Plumb GpuMemoryBuffer allocation to GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed static 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
OLDNEW
(Empty)
1 // Copyright (c) 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 CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
7
reveman 2014/06/11 14:03:22 include base/callback.h
alexst (slow to review) 2014/06/11 14:18:59 Done.
8 namespace gfx {
9 class Size;
10 struct GpuMemoryBufferHandle;
11 }
12
13 namespace content {
14
15 class GpuMemoryBufferFactoryHost {
16 public:
17 typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
18 CreateGpuMemoryBufferCallback;
19
20 virtual void CreateGpuMemoryBuffer(
21 const gfx::GpuMemoryBufferHandle& handle,
22 const gfx::Size& size,
23 unsigned internalformat,
24 unsigned usage,
25 const CreateGpuMemoryBufferCallback& callback) = 0;
26 virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
27 int32 sync_point) = 0;
28
29 protected:
30 virtual ~GpuMemoryBufferFactoryHost() {}
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698