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

Side by Side Diff: content/child/child_gpu_memory_buffer_manager.cc

Issue 897563002: Unify the three places that patch font loading for PDFium on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/child/child_gpu_memory_buffer_manager.h" 5 #include "content/child/child_gpu_memory_buffer_manager.h"
6 6
7 #include "content/child/child_thread.h"
8 #include "content/common/child_process_messages.h" 7 #include "content/common/child_process_messages.h"
9 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" 8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
10 9
11 namespace content { 10 namespace content {
12 namespace { 11 namespace {
13 12
14 void DeletedGpuMemoryBuffer(ThreadSafeSender* sender, 13 void DeletedGpuMemoryBuffer(ThreadSafeSender* sender,
15 gfx::GpuMemoryBufferId id, 14 gfx::GpuMemoryBufferId id,
16 uint32 sync_point) { 15 uint32 sync_point) {
17 TRACE_EVENT0("renderer", 16 TRACE_EVENT0("renderer",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 67 }
69 68
70 void ChildGpuMemoryBufferManager::SetDestructionSyncPoint( 69 void ChildGpuMemoryBufferManager::SetDestructionSyncPoint(
71 gfx::GpuMemoryBuffer* buffer, 70 gfx::GpuMemoryBuffer* buffer,
72 uint32 sync_point) { 71 uint32 sync_point) {
73 static_cast<GpuMemoryBufferImpl*>(buffer) 72 static_cast<GpuMemoryBufferImpl*>(buffer)
74 ->set_destruction_sync_point(sync_point); 73 ->set_destruction_sync_point(sync_point);
75 } 74 }
76 75
77 } // namespace content 76 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698