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

Side by Side Diff: gpu/command_buffer/client/gpu_memory_buffer_factory.h

Issue 13870010: Move GpuMemoryBuffer interface from ui/gl to gpu/command_buffer/client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include base/logging.h for DCHECK Created 7 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 | Annotate | Revision Log
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 GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_
7 7
8 #include "ui/gl/gpu_memory_buffer.h"
9 #include "gles2_impl_export.h" 8 #include "gles2_impl_export.h"
9 #include "gpu/command_buffer/client/gpu_memory_buffer.h"
10 10
11 namespace gpu { 11 namespace gpu {
12 12
13 // Getter and setter for a GpuMemoryBuffer factory for the current process. 13 // Getter and setter for a GpuMemoryBuffer factory for the current process.
14 // Currently it is only used for Android Webview where both browser and 14 // Currently it is only used for Android Webview where both browser and
15 // renderer are within the same process. 15 // renderer are within the same process.
16 16
17 // It is not valid to call this method before the setter is called. 17 // It is not valid to call this method before the setter is called.
18 const gfx::GpuMemoryBuffer::Creator& GetProcessDefaultGpuMemoryBufferFactory(); 18 const GpuMemoryBuffer::Creator& GetProcessDefaultGpuMemoryBufferFactory();
19 19
20 // It is illegal to call the setter more than once. 20 // It is illegal to call the setter more than once.
21 GLES2_IMPL_EXPORT void SetProcessDefaultGpuMemoryBufferFactory( 21 GLES2_IMPL_EXPORT void SetProcessDefaultGpuMemoryBufferFactory(
22 const gfx::GpuMemoryBuffer::Creator& factory); 22 const GpuMemoryBuffer::Creator& factory);
23 23
24 } // namespace gpu 24 } // namespace gpu
25 25
26 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_ 26 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gpu_memory_buffer.h ('k') | gpu/command_buffer/client/gpu_memory_buffer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698