Index: skia/ext/layer_allocator.h |
diff --git a/skia/ext/layer_allocator.h b/skia/ext/layer_allocator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..41940c7f9c08d65eabd75acf4ea43f1e98b6698d |
--- /dev/null |
+++ b/skia/ext/layer_allocator.h |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2016 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 SKIA_EXT_LAYER_ALLOCATOR_H |
+#define SKIA_EXT_LAYER_ALLOCATOR_H |
+ |
+// Include the platform-appropriate LayerAllocator header, which |
+// coordinates PlatformCanvases with PlatformSurfaces. |
+ |
+#if defined(WIN32) |
+#include "skia/ext/layer_allocator_win.h" |
+#elif defined(__APPLE__) |
+#include "skia/ext/layer_allocator_mac.h" |
+#elif defined(USE_CAIRO) |
+#include "skia/ext/layer_allocator_cairo.h" |
+#else |
+#include "skia/ext/layer_allocator_skia.h" |
+#endif |
+ |
+#endif // SKIA_EXT_LAYER_ALLOCATOR_H |
+ |