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

Side by Side Diff: services/ui/public/cpp/gpu_memory_buffer_impl.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
« no previous file with comments | « services/ui/public/cpp/gpu_memory_buffer_impl.h ('k') | services/ui/public/cpp/gpu_service.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/gpu_memory_buffer_impl.h" 5 #include "services/ui/public/cpp/gpu_memory_buffer_impl.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id, 9 GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id,
10 const gfx::Size& size, 10 const gfx::Size& size,
11 gfx::BufferFormat format) 11 gfx::BufferFormat format)
12 : id_(id), size_(size), format_(format), mapped_(false) {} 12 : id_(id), size_(size), format_(format), mapped_(false) {}
13 13
14 GpuMemoryBufferImpl::~GpuMemoryBufferImpl() { 14 GpuMemoryBufferImpl::~GpuMemoryBufferImpl() {
15 DCHECK(!mapped_); 15 DCHECK(!mapped_);
(...skipping 21 matching lines...) Expand all
37 return reinterpret_cast<ClientBuffer>(this); 37 return reinterpret_cast<ClientBuffer>(this);
38 } 38 }
39 39
40 #if defined(USE_OZONE) 40 #if defined(USE_OZONE)
41 scoped_refptr<ui::NativePixmap> GpuMemoryBufferImpl::GetNativePixmap() { 41 scoped_refptr<ui::NativePixmap> GpuMemoryBufferImpl::GetNativePixmap() {
42 return scoped_refptr<ui::NativePixmap>(); 42 return scoped_refptr<ui::NativePixmap>();
43 } 43 }
44 #endif 44 #endif
45 45
46 } // namespace ui 46 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/gpu_memory_buffer_impl.h ('k') | services/ui/public/cpp/gpu_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698