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

Side by Side Diff: services/ui/public/cpp/mojo_gpu_memory_buffer.cc

Issue 2184943002: services/ui: Move some files into the client lib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-gpu-in-mus-windows
Patch Set: . Created 4 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 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 "services/ui/common/mojo_gpu_memory_buffer.h" 5 #include "services/ui/public/cpp/mojo_gpu_memory_buffer.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
12 #include "base/numerics/safe_conversions.h" 12 #include "base/numerics/safe_conversions.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "mojo/public/cpp/system/buffer.h" 14 #include "mojo/public/cpp/system/buffer.h"
15 #include "mojo/public/cpp/system/platform_handle.h" 15 #include "mojo/public/cpp/system/platform_handle.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 gfx::RowSizeForBufferFormat(size_.width(), format_, 0)); 98 gfx::RowSizeForBufferFormat(size_.width(), format_, 0));
99 99
100 return handle; 100 return handle;
101 } 101 }
102 102
103 gfx::GpuMemoryBufferType MojoGpuMemoryBufferImpl::GetBufferType() const { 103 gfx::GpuMemoryBufferType MojoGpuMemoryBufferImpl::GetBufferType() const {
104 return gfx::SHARED_MEMORY_BUFFER; 104 return gfx::SHARED_MEMORY_BUFFER;
105 } 105 }
106 106
107 } // namespace ui 107 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/mojo_gpu_memory_buffer.h ('k') | services/ui/public/cpp/mojo_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698