[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / content / common / gpu / client / gpu_memory_buffer_factory_host.h
blob6dfd58beabaa88f55ab0926f2b26353cb4eb02ba
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
8 #include "base/callback.h"
10 namespace gfx {
11 class Size;
12 struct GpuMemoryBufferHandle;
15 namespace content {
17 class CONTENT_EXPORT GpuMemoryBufferFactoryHost {
18 public:
19 typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
20 CreateGpuMemoryBufferCallback;
22 virtual void CreateGpuMemoryBuffer(
23 const gfx::GpuMemoryBufferHandle& handle,
24 const gfx::Size& size,
25 unsigned internalformat,
26 unsigned usage,
27 const CreateGpuMemoryBufferCallback& callback) = 0;
28 virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
29 int32 sync_point) = 0;
31 protected:
32 virtual ~GpuMemoryBufferFactoryHost() {}
35 } // namespace content
37 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_