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

Unified Diff: cc/surfaces/surface.h

Issue 2695243006: Don't delete CopyOutputRequests when queueing a new Surface frame. (Closed)
Patch Set: add test Created 3 years, 10 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 | « no previous file | cc/surfaces/surface.cc » ('j') | cc/surfaces/surface.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface.h
diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
index c42292e3b04655cf1f97498df3ab5acfcfd5f397..3901d2c2c17b71877f32ea955233b73d84550cc0 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -121,6 +121,8 @@ class CC_SURFACES_EXPORT Surface {
bool destroyed() const { return destroyed_; }
void set_destroyed(bool destroyed) { destroyed_ = destroyed; }
+ bool HasRootCopyRequests() const { return !copy_requests_.empty(); }
+
private:
void ActivatePendingFrame();
// Called when all of the surface's dependencies have been resolved.
@@ -141,6 +143,7 @@ class CC_SURFACES_EXPORT Surface {
int frame_index_;
bool destroyed_;
std::vector<SurfaceSequence> destruction_dependencies_;
+ std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_;
// This surface may have multiple BeginFrameSources if it is
// on multiple Displays.
« no previous file with comments | « no previous file | cc/surfaces/surface.cc » ('j') | cc/surfaces/surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698