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

Unified Diff: ui/aura/mus/client_surface_embedder.cc

Issue 2616403003: Replacing SurfaceReferenceBase and SequenceSurfaceReference with Closures (Closed)
Patch Set: c Created 3 years, 11 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/surfaces/surface_reference_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/client_surface_embedder.cc
diff --git a/ui/aura/mus/client_surface_embedder.cc b/ui/aura/mus/client_surface_embedder.cc
index 53bc4f101160c5f60008ae8cdcf95e51d1e0ac14..da2bb6159848ee9fe673be31f387a16bc8f5d2bc 100644
--- a/ui/aura/mus/client_surface_embedder.cc
+++ b/ui/aura/mus/client_surface_embedder.cc
@@ -12,35 +12,20 @@ namespace {
// TODO(mfomitchev, samans): Remove these stub classes once the SurfaceReference
// work is complete.
-class StubSurfaceReference : public cc::SurfaceReferenceBase {
- public:
- StubSurfaceReference(scoped_refptr<const cc::SurfaceReferenceFactory> factory)
- : cc::SurfaceReferenceBase(factory) {}
-
- ~StubSurfaceReference() override { Destroy(); }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(StubSurfaceReference);
-};
-
class StubSurfaceReferenceFactory : public cc::SurfaceReferenceFactory {
public:
StubSurfaceReferenceFactory() = default;
// cc::SurfaceReferenceFactory:
- std::unique_ptr<cc::SurfaceReferenceBase> CreateReference(
+ base::Closure CreateReference(
cc::SurfaceReferenceOwner* owner,
const cc::SurfaceId& surface_id) const override {
- return base::MakeUnique<StubSurfaceReference>(make_scoped_refptr(this));
+ return base::Closure();
}
protected:
~StubSurfaceReferenceFactory() override = default;
- private:
- // cc::SurfaceReferenceFactory:
- void DestroyReference(cc::SurfaceReferenceBase* surface_ref) const override {}
-
DISALLOW_COPY_AND_ASSIGN(StubSurfaceReferenceFactory);
};
} // namespace
« no previous file with comments | « cc/surfaces/surface_reference_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698