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

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

Issue 2930143004: Add DIRECT_COMPOSITION GpuMemoryBuffer type.
Patch Set: fix build Created 3 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "gpu/ipc/client/gpu_memory_buffer_impl_direct_composition.h"
6
7 namespace gpu {
8
9 GpuMemoryBufferImplDirectComposition::GpuMemoryBufferImplDirectComposition(
10 const gfx::Size& size,
11 gfx::GpuMemoryBufferHandle handle,
12 gfx::BufferFormat format,
13 const DestructionCallback& callback)
14 : GpuMemoryBufferImpl(handle.id, size, format, callback), handle_(handle) {}
15 GpuMemoryBufferImplDirectComposition::~GpuMemoryBufferImplDirectComposition() {}
16
17 bool GpuMemoryBufferImplDirectComposition::Map() {
18 return false;
19 }
20
21 void* GpuMemoryBufferImplDirectComposition::memory(size_t plane) {
22 return nullptr;
23 }
24
25 void GpuMemoryBufferImplDirectComposition::Unmap() {}
26
27 int GpuMemoryBufferImplDirectComposition::stride(size_t plane) const {
28 return 0;
29 }
30
31 void GpuMemoryBufferImplDirectComposition::SetColorSpaceForScanout(
32 const gfx::ColorSpace& color_space) {}
33
34 gfx::GpuMemoryBufferHandle GpuMemoryBufferImplDirectComposition::GetHandle()
35 const {
36 return handle_;
37 }
38 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698