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

Unified Diff: cc/layers/layer_impl.h

Issue 15435003: cc: Add CopyAsBitmapRequest class to hold the readback callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nolint Created 7 years, 7 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 6e64b3f2727579f2228211110cb8532179154d2d..64aeccb1bc90a14879f730fcf9762adf573ce60f 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -6,7 +6,6 @@
#define CC_LAYERS_LAYER_IMPL_H_
#include <string>
-#include <vector>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -76,13 +75,9 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
// Warning: This does not preserve tree structure invariants.
void ClearChildList();
- void PassRequestCopyCallbacks(
- std::vector<RenderPass::RequestCopyAsBitmapCallback>* callbacks);
- void TakeRequestCopyCallbacks(
- std::vector<RenderPass::RequestCopyAsBitmapCallback>* callbacks);
- bool HasRequestCopyCallback() const {
- return !request_copy_callbacks_.empty();
- }
+ void PassCopyRequests(ScopedPtrVector<CopyOutputRequest>* requests);
+ void TakeCopyRequests(ScopedPtrVector<CopyOutputRequest>* request);
+ bool HasCopyRequest() const { return !copy_requests_.empty(); }
void SetMaskLayer(scoped_ptr<LayerImpl> mask_layer);
LayerImpl* mask_layer() { return mask_layer_.get(); }
@@ -545,7 +540,7 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
ScrollbarLayerImpl* horizontal_scrollbar_layer_;
ScrollbarLayerImpl* vertical_scrollbar_layer_;
- std::vector<RenderPass::RequestCopyAsBitmapCallback> request_copy_callbacks_;
+ ScopedPtrVector<CopyOutputRequest> copy_requests_;
// Group of properties that need to be computed based on the layer tree
// hierarchy before layers can be drawn.
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698