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

Unified Diff: content/public/browser/readback_types.h

Issue 593503003: Support error handling for Surface readbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use content namespace to resolve readback params. Created 6 years, 1 month 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: content/public/browser/readback_types.h
diff --git a/content/public/browser/readback_types.h b/content/public/browser/readback_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..3187f9f5aaf72dbfcddb1619301a66f99cad71a8
--- /dev/null
+++ b/content/public/browser/readback_types.h
@@ -0,0 +1,27 @@
+// Copyright 2014 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 CONTENT_COMMON_READBACK_TYPES_H_
+#define CONTENT_COMMON_READBACK_TYPES_H_
+
+#include "base/callback.h"
+
+class SkBitmap;
+
+namespace content {
+
+enum ReadbackResponse {
+ READBACK_SUCCESS,
+ READBACK_FAILED,
+ READBACK_FORMAT_NOT_SUPPORTED,
+ READBACK_NOT_SUPPORTED,
+ READBACK_SURFACE_UNAVAILABLE,
+ READBACK_MEMORY_ALLOCATION_FAILURE,
+};
+
+typedef const base::Callback<void(const SkBitmap&, const ReadbackResponse&)>
+ ReadbackRequestCallback;
+} // namespace
piman 2014/11/07 01:55:42 nit: 'namespace content' Add blank line before }
sivag 2014/11/07 12:27:41 Done.
+
+#endif // CONTENT_COMMON_READBACK_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698