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

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: Formatted code and fixed build issue in test. 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..f3d2a6906b535ce4381c330b5a67c7b615684c9c
--- /dev/null
+++ b/content/public/browser/readback_types.h
@@ -0,0 +1,28 @@
+// 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&, ReadbackResponse)>
+ ReadbackRequestCallback;
+
+} // namespace content
+
+#endif // CONTENT_COMMON_READBACK_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698