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

Side by Side Diff: content/child/child_native_pixmap_manager_ozone.cc

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 to new crrev.com/1128113011 Created 5 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/child/child_native_pixmap_manager_ozone.h" 5 #include "content/child/child_native_pixmap_manager_ozone.h"
6 6
7 #include "base/file_descriptor_posix.h" 7 #include "base/file_descriptor_posix.h"
8 #include "content/common/gpu/native_pixmap_manager_ozone_messages.h" 8 #include "content/common/gpu/native_pixmap_manager_ozone_messages.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 25 matching lines...) Expand all
36 void ChildNativePixmapManager::Initialize( 36 void ChildNativePixmapManager::Initialize(
37 const base::FileDescriptor& device_fd) { 37 const base::FileDescriptor& device_fd) {
38 pixmap_manager_ = ui::NativePixmapManager::Create(device_fd); 38 pixmap_manager_ = ui::NativePixmapManager::Create(device_fd);
39 } 39 }
40 40
41 std::vector<ui::NativePixmapManager::Configuration> 41 std::vector<ui::NativePixmapManager::Configuration>
42 ChildNativePixmapManager::GetSupportedNativePixmapConfigurations() const { 42 ChildNativePixmapManager::GetSupportedNativePixmapConfigurations() const {
43 return pixmap_manager_->GetSupportedNativePixmapConfigurations(); 43 return pixmap_manager_->GetSupportedNativePixmapConfigurations();
44 } 44 }
45 45
46 scoped_refptr<ui::NativePixmap>
47 ChildNativePixmapManager::CreateFromFileDescriptor(
48 base::FileDescriptor handle,
49 gfx::Size size,
50 ui::SurfaceFactoryOzone::BufferFormat format,
51 ui::SurfaceFactoryOzone::BufferUsage usage) {
52 return pixmap_manager_->CreateFromFileDescriptor(handle, size, format, usage);
53 }
54
46 } // namespace content 55 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698