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

Unified Diff: cc/output/output_surface_client.h

Issue 2465093002: cc: Add OutputSurface state snapshots.
Patch Set: nits Created 4 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: cc/output/output_surface_client.h
diff --git a/cc/output/output_surface_client.h b/cc/output/output_surface_client.h
index 9f55fc3fa3d0ba72a1c7f673e5e67416ba1556b8..63c68d2cea5dd6006d85951c0c33f6a16738d2ad 100644
--- a/cc/output/output_surface_client.h
+++ b/cc/output/output_surface_client.h
@@ -12,6 +12,7 @@
#include "cc/output/context_provider.h"
#include "cc/resources/returned_resource.h"
#include "gpu/command_buffer/common/texture_in_use_response.h"
+#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/geometry/rect.h"
namespace gfx {
@@ -36,6 +37,11 @@ class CC_EXPORT OutputSurfaceClient {
virtual void DidReceiveTextureInUseResponses(
const gpu::TextureInUseResponses& responses) = 0;
+ // Readback the contents of last swapped overlay textures.
+ virtual void ReadbackSwappedOverlayTextures(
+ std::vector<SkBitmap>* bitmaps,
danakj 2016/11/01 23:33:01 why not a parameter of the Callback?
reveman 2016/11/02 00:37:05 It just evolved this way. I guess the alternative
+ const base::Callback<void(bool)>& callback) = 0;
+
protected:
virtual ~OutputSurfaceClient() {}
};

Powered by Google App Engine
This is Rietveld 408576698