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

Unified Diff: components/exo/surface.h

Issue 2032173002: exo: Allow updating cc::Surface viewport and crop state independently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.h
diff --git a/components/exo/surface.h b/components/exo/surface.h
index 111b4d80ecc106f352d6c1b975c8670f01dda1e7..016fe113fd6c175dbcb01257c4cceededf6712ea 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -15,6 +15,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
+#include "cc/resources/transferable_resource.h"
#include "cc/surfaces/surface_factory_client.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "third_party/skia/include/core/SkXfermode.h"
@@ -257,7 +258,7 @@ class Surface : public aura::Window,
cc::SurfaceId surface_id_;
// The next resource id the buffer will be attached to.
- int next_resource_id_ = 0;
+ int next_resource_id_ = 1;
// The damage region to schedule paint for when Commit() is called.
SkRegion pending_damage_;
@@ -315,6 +316,9 @@ class Surface : public aura::Window,
// The buffer that is currently set as content of surface.
base::WeakPtr<Buffer> current_buffer_;
+ // The last resource that was sent to a surface.
+ cc::TransferableResource current_resource_;
+
// The active input region used for hit testing.
SkRegion input_region_;
« no previous file with comments | « no previous file | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698