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

Unified Diff: components/exo/surface.h

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests Created 4 years, 2 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
Index: components/exo/surface.h
diff --git a/components/exo/surface.h b/components/exo/surface.h
index aba532a53868e022d3f9f5056797112fc8d697ac..a3706787e488021f0d164a800f35417e2bcdaa6f 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -67,7 +67,7 @@ class SurfaceFactoryOwner : public base::RefCounted<SurfaceFactoryOwner>,
// Overridden from cc::SurfaceFactoryClient:
void ReturnResources(const cc::ReturnedResourceArray& resources) override;
- void WillDrawSurface(const cc::SurfaceId& id,
+ void WillDrawSurface(const cc::LocalFrameId& id,
const gfx::Rect& damage_rect) override;
void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
@@ -102,7 +102,8 @@ class Surface : public ui::LayerOwnerDelegate,
aura::Window* window() { return window_.get(); }
- const cc::SurfaceId& surface_id() const { return surface_id_; }
+ const cc::LocalFrameId& local_frame_id() const { return local_frame_id_; }
+ cc::SurfaceId GetSurfaceId() const;
// Set a buffer as the content of this surface. A buffer can only be attached
// to one surface at a time.
@@ -215,7 +216,7 @@ class Surface : public ui::LayerOwnerDelegate,
// Overridden from ui::ContextFactoryObserver.
void OnLostResources() override;
- void WillDraw(const cc::SurfaceId& surface_id);
+ void WillDraw(const cc::LocalFrameId& local_frame_id);
// Check whether this Surface and its children need to create new cc::Surface
// IDs for their contents next time they get new buffer contents.
@@ -337,7 +338,7 @@ class Surface : public ui::LayerOwnerDelegate,
scoped_refptr<SurfaceFactoryOwner> factory_owner_;
// The Surface Id currently attached to the window.
- cc::SurfaceId surface_id_;
+ cc::LocalFrameId local_frame_id_;
// The next resource id the buffer will be attached to.
int next_resource_id_ = 1;

Powered by Google App Engine
This is Rietveld 408576698