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

Unified Diff: cc/proto/gpu_conversions.h

Issue 1490513005: Add support for ManagedMemoryPolicy (de)serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-settings
Patch Set: Addressed comments Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: cc/proto/gpu_conversions.h
diff --git a/cc/proto/gpu_conversions.h b/cc/proto/gpu_conversions.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a7487914185abc83ee7b3857867660c8d9c06a7
--- /dev/null
+++ b/cc/proto/gpu_conversions.h
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_PROTO_GPU_CONVERSIONS_H_
+#define CC_PROTO_GPU_CONVERSIONS_H_
+
+#include "cc/base/cc_export.h"
+#include "cc/proto/memory_allocation.pb.h"
+#include "gpu/command_buffer/common/gpu_memory_allocation.h"
+
+namespace cc {
+
+// TODO(dtrainor): Move these to a class and make them static
+// (crbug.com/548432).
+CC_EXPORT proto::MemoryAllocation::PriorityCutoff
+MemoryAllocationPriorityCutoffToProto(
+ const gpu::MemoryAllocation::PriorityCutoff& priority_cutoff);
+CC_EXPORT gpu::MemoryAllocation::PriorityCutoff
+MemoryAllocationPriorityCutoffFromProto(
+ const proto::MemoryAllocation::PriorityCutoff& proto);
+
+} // namespace cc
+
+#endif // CC_PROTO_GPU_CONVERSIONS_H_
« no previous file with comments | « cc/proto/BUILD.gn ('k') | cc/proto/gpu_conversions.cc » ('j') | cc/proto/gpu_conversions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698