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

Side by Side Diff: cc/resources/gpu_memory_buffer_manager.h

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « cc/resources/content_layer_updater.cc ('k') | cc/resources/layer_quad.h » ('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 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 CC_RESOURCES_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef CC_RESOURCES_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CC_RESOURCES_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define CC_RESOURCES_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "ui/gfx/geometry/size.h"
10 #include "ui/gfx/gpu_memory_buffer.h" 11 #include "ui/gfx/gpu_memory_buffer.h"
11 #include "ui/gfx/size.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class CC_EXPORT GpuMemoryBufferManager { 15 class CC_EXPORT GpuMemoryBufferManager {
16 public: 16 public:
17 // Allocates a GpuMemoryBuffer that can be shared with another process. 17 // Allocates a GpuMemoryBuffer that can be shared with another process.
18 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 18 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
19 const gfx::Size& size, 19 const gfx::Size& size,
20 gfx::GpuMemoryBuffer::Format format, 20 gfx::GpuMemoryBuffer::Format format,
21 gfx::GpuMemoryBuffer::Usage usage) = 0; 21 gfx::GpuMemoryBuffer::Usage usage) = 0;
22 22
23 // Returns a GpuMemoryBuffer instance given a ClientBuffer. Returns NULL on 23 // Returns a GpuMemoryBuffer instance given a ClientBuffer. Returns NULL on
24 // failure. 24 // failure.
25 virtual gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 25 virtual gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
26 ClientBuffer buffer) = 0; 26 ClientBuffer buffer) = 0;
27 27
28 protected: 28 protected:
29 virtual ~GpuMemoryBufferManager() {} 29 virtual ~GpuMemoryBufferManager() {}
30 }; 30 };
31 31
32 } // namespace cc 32 } // namespace cc
33 33
34 #endif // CC_RESOURCES_GPU_MEMORY_BUFFER_MANAGER_H_ 34 #endif // CC_RESOURCES_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | cc/resources/layer_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698