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

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

Issue 2383753002: gpu: Add GpuFence framework.
Patch Set: rebase Created 4 years, 1 month 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/public/cpp/mojo_gpu_memory_buffer_manager.h" 5 #include "services/ui/public/cpp/mojo_gpu_memory_buffer_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 return nullptr; 126 return nullptr;
127 } 127 }
128 128
129 void MojoGpuMemoryBufferManager::SetDestructionSyncToken( 129 void MojoGpuMemoryBufferManager::SetDestructionSyncToken(
130 gfx::GpuMemoryBuffer* buffer, 130 gfx::GpuMemoryBuffer* buffer,
131 const gpu::SyncToken& sync_token) { 131 const gpu::SyncToken& sync_token) {
132 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( 132 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token(
133 sync_token); 133 sync_token);
134 } 134 }
135 135
136 std::unique_ptr<gfx::GpuFence> MojoGpuMemoryBufferManager::CreateGpuFence() {
137 NOTIMPLEMENTED();
138 return nullptr;
139 }
140
141 std::unique_ptr<gfx::GpuFence>
142 MojoGpuMemoryBufferManager::CreateGpuFenceFromHandle(
143 const gfx::GpuFenceHandle& handle) {
144 NOTIMPLEMENTED();
145 return nullptr;
146 }
147
148 gfx::GpuFence* MojoGpuMemoryBufferManager::GpuFenceFromClientFence(
149 ClientFence fence) {
150 NOTIMPLEMENTED();
151 return nullptr;
152 }
153
136 } // namespace ui 154 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698