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

Unified Diff: services/shape_detection/detection_utils_mac.h

Issue 2655303005: Shape detection service: Add QR detection in Mac (Closed)
Patch Set: Don't init explicitly a vector of vectors Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: services/shape_detection/detection_utils_mac.h
diff --git a/services/shape_detection/detection_utils_mac.h b/services/shape_detection/detection_utils_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..98e3c0fc3c14f85976fc6cb9122ab98f6294ef35
--- /dev/null
+++ b/services/shape_detection/detection_utils_mac.h
@@ -0,0 +1,24 @@
+// Copyright 2017 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 SERVICES_SHAPE_DETECTION_DETECTION_UTILS_MAC_H_
+#define SERVICES_SHAPE_DETECTION_DETECTION_UTILS_MAC_H_
+
+#import <QuartzCore/QuartzCore.h>
+
+#include "base/mac/scoped_nsobject.h"
+#include "services/shape_detection/public/interfaces/barcodedetection.mojom.h"
+
+namespace shape_detection {
+
+// Takes a ScopedSharedBufferHandle with dimensions and produces a new CIImage
+// with the same contents, or a null scoped_nsobject is something goes wrong.
+base::scoped_nsobject<CIImage> CreateCIImageFromSharedMemory(
+ mojo::ScopedSharedBufferHandle frame_data,
+ uint32_t width,
+ uint32_t height);
+
+} // namespace shape_detection
+
+#endif // SERVICES_SHAPE_DETECTION_DETECTION_UTILS_MAC_H_
« no previous file with comments | « services/shape_detection/barcode_detection_impl_mac.mm ('k') | services/shape_detection/detection_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698