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

Unified Diff: sky/compositor/surface_holder.h

Issue 1213683004: Move //sky/compositor to //sky/viewer/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/compositor/surface_allocator.cc ('k') | sky/compositor/surface_holder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/surface_holder.h
diff --git a/sky/compositor/surface_holder.h b/sky/compositor/surface_holder.h
deleted file mode 100644
index 607d2e4af11bc658b3b80b4c864a441285bec96e..0000000000000000000000000000000000000000
--- a/sky/compositor/surface_holder.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SKY_COMPOSITOR_SURFACE_HOLDER_H_
-#define SKY_COMPOSITOR_SURFACE_HOLDER_H_
-
-#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h"
-#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
-#include "ui/gfx/geometry/rect.h"
-
-namespace mojo {
-class Shell;
-}
-
-namespace sky {
-class SurfaceAllocator;
-
-class SurfaceHolder : public mojo::ResourceReturner {
- public:
- class Client {
- public:
- virtual void OnSurfaceIdAvailable(mojo::SurfaceIdPtr surface_id) = 0;
- virtual void ReturnResources(
- mojo::Array<mojo::ReturnedResourcePtr> resources) = 0;
-
- protected:
- virtual ~Client();
- };
-
- explicit SurfaceHolder(Client* client, mojo::Shell* shell);
- ~SurfaceHolder() override;
-
- void SetSize(const gfx::Size& size);
- void SubmitFrame(mojo::FramePtr frame, const base::Closure& callback);
-
- private:
- // mojo::ResourceReturner
- void ReturnResources(
- mojo::Array<mojo::ReturnedResourcePtr> resources) override;
-
- void SetIdNamespace(uint32_t id_namespace);
- void SetQualifiedId();
-
- Client* client_;
- gfx::Size size_;
- uint32_t id_namespace_;
- uint32_t local_id_;
- mojo::SurfacePtr surface_;
- mojo::Binding<mojo::ResourceReturner> returner_binding_;
-
- base::WeakPtrFactory<SurfaceHolder> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(SurfaceHolder);
-};
-
-} // namespace sky
-
-#endif // SKY_COMPOSITOR_SURFACE_HOLDER_H_
« no previous file with comments | « sky/compositor/surface_allocator.cc ('k') | sky/compositor/surface_holder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698