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

Side by Side Diff: gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 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
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 #include "content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h " 5 #include "gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "gpu/ipc/common/gpu_memory_buffer_support.h" 9 #include "gpu/ipc/common/gpu_memory_buffer_support.h"
10 #include "ui/gfx/buffer_format_util.h" 10 #include "ui/gfx/buffer_format_util.h"
11 #include "ui/ozone/public/client_native_pixmap_factory.h" 11 #include "ui/ozone/public/client_native_pixmap_factory.h"
12 #include "ui/ozone/public/native_pixmap.h" 12 #include "ui/ozone/public/native_pixmap.h"
13 #include "ui/ozone/public/ozone_platform.h" 13 #include "ui/ozone/public/ozone_platform.h"
14 #include "ui/ozone/public/surface_factory_ozone.h" 14 #include "ui/ozone/public/surface_factory_ozone.h"
15 15
16 namespace content { 16 namespace gpu {
17 namespace { 17 namespace {
18 18
19 void FreeNativePixmapForTesting(scoped_refptr<ui::NativePixmap> native_pixmap) { 19 void FreeNativePixmapForTesting(scoped_refptr<ui::NativePixmap> native_pixmap) {
20 // Nothing to do here. |native_pixmap| will be freed when this function 20 // Nothing to do here. |native_pixmap| will be freed when this function
21 // returns and reference count drops to 0. 21 // returns and reference count drops to 0.
22 } 22 }
23 23
24 } // namespace 24 } // namespace
25 25
26 GpuMemoryBufferImplOzoneNativePixmap::GpuMemoryBufferImplOzoneNativePixmap( 26 GpuMemoryBufferImplOzoneNativePixmap::GpuMemoryBufferImplOzoneNativePixmap(
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 gfx::GpuMemoryBufferHandle GpuMemoryBufferImplOzoneNativePixmap::GetHandle() 103 gfx::GpuMemoryBufferHandle GpuMemoryBufferImplOzoneNativePixmap::GetHandle()
104 const { 104 const {
105 gfx::GpuMemoryBufferHandle handle; 105 gfx::GpuMemoryBufferHandle handle;
106 handle.type = gfx::OZONE_NATIVE_PIXMAP; 106 handle.type = gfx::OZONE_NATIVE_PIXMAP;
107 handle.id = id_; 107 handle.id = id_;
108 return handle; 108 return handle;
109 } 109 }
110 110
111 } // namespace content 111 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698