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

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

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on crrev.com/1263323004 Created 5 years, 4 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_OZONE_NATIVE_PIXMAP_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_
7 7
8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" 8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 16 matching lines...) Expand all
27 bool Map(void** data) override; 27 bool Map(void** data) override;
28 void Unmap() override; 28 void Unmap() override;
29 void GetStride(int* stride) const override; 29 void GetStride(int* stride) const override;
30 gfx::GpuMemoryBufferHandle GetHandle() const override; 30 gfx::GpuMemoryBufferHandle GetHandle() const override;
31 31
32 private: 32 private:
33 GpuMemoryBufferImplOzoneNativePixmap( 33 GpuMemoryBufferImplOzoneNativePixmap(
34 gfx::GpuMemoryBufferId id, 34 gfx::GpuMemoryBufferId id,
35 const gfx::Size& size, 35 const gfx::Size& size,
36 gfx::BufferFormat format, 36 gfx::BufferFormat format,
37 gfx::BufferUsage usage,
37 const DestructionCallback& callback, 38 const DestructionCallback& callback,
38 scoped_ptr<ui::ClientNativePixmap> native_pixmap); 39 scoped_ptr<ui::ClientNativePixmap> pixmap);
39 ~GpuMemoryBufferImplOzoneNativePixmap() override; 40 ~GpuMemoryBufferImplOzoneNativePixmap() override;
40 41
42 gfx::BufferUsage usage_;
41 scoped_ptr<ui::ClientNativePixmap> pixmap_; 43 scoped_ptr<ui::ClientNativePixmap> pixmap_;
42 44
43 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap); 45 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap);
44 }; 46 };
45 47
46 } // namespace content 48 } // namespace content
47 49
48 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_ H_ 50 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698