| OLD | NEW |
| 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 "cc/test/test_gpu_memory_buffer_manager.h" | 5 #include "cc/test/test_gpu_memory_buffer_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "base/logging.h" | 10 #include "base/logging.h" |
| 8 #include "base/numerics/safe_conversions.h" | 11 #include "base/numerics/safe_conversions.h" |
| 9 #include "ui/gfx/buffer_format_util.h" | 12 #include "ui/gfx/buffer_format_util.h" |
| 10 #include "ui/gfx/gpu_memory_buffer.h" | 13 #include "ui/gfx/gpu_memory_buffer.h" |
| 11 | 14 |
| 12 namespace cc { | 15 namespace cc { |
| 13 namespace { | 16 namespace { |
| 14 | 17 |
| 15 class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer { | 18 class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer { |
| 16 public: | 19 public: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 TestGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( | 122 TestGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( |
| 120 ClientBuffer buffer) { | 123 ClientBuffer buffer) { |
| 121 return reinterpret_cast<gfx::GpuMemoryBuffer*>(buffer); | 124 return reinterpret_cast<gfx::GpuMemoryBuffer*>(buffer); |
| 122 } | 125 } |
| 123 | 126 |
| 124 void TestGpuMemoryBufferManager::SetDestructionSyncToken( | 127 void TestGpuMemoryBufferManager::SetDestructionSyncToken( |
| 125 gfx::GpuMemoryBuffer* buffer, | 128 gfx::GpuMemoryBuffer* buffer, |
| 126 const gpu::SyncToken& sync_token) {} | 129 const gpu::SyncToken& sync_token) {} |
| 127 | 130 |
| 128 } // namespace cc | 131 } // namespace cc |
| OLD | NEW |