OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_PROTO_GPU_CONVERSIONS_H_ |
| 6 #define CC_PROTO_GPU_CONVERSIONS_H_ |
| 7 |
| 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/proto/memory_allocation.pb.h" |
| 10 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 11 |
| 12 namespace cc { |
| 13 |
| 14 // TODO(dtrainor): Move these to a class and make them static |
| 15 // (crbug.com/548432). |
| 16 CC_EXPORT proto::MemoryAllocation::PriorityCutoff |
| 17 MemoryAllocationPriorityCutoffToProto( |
| 18 const gpu::MemoryAllocation::PriorityCutoff& priority_cutoff); |
| 19 CC_EXPORT gpu::MemoryAllocation::PriorityCutoff |
| 20 MemoryAllocationPriorityCutoffFromProto( |
| 21 const proto::MemoryAllocation::PriorityCutoff& proto); |
| 22 |
| 23 } // namespace cc |
| 24 |
| 25 #endif // CC_PROTO_GPU_CONVERSIONS_H_ |
OLD | NEW |