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

Unified Diff: mojo/cc/output_surface_mojo.h

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « mojo/cc/BUILD.gn ('k') | mojo/cc/output_surface_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/cc/output_surface_mojo.h
diff --git a/mojo/cc/output_surface_mojo.h b/mojo/cc/output_surface_mojo.h
deleted file mode 100644
index 3aa14d1bd1ba34ec70ecd2028ab36cae0dcbd2c9..0000000000000000000000000000000000000000
--- a/mojo/cc/output_surface_mojo.h
+++ /dev/null
@@ -1,52 +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 MOJO_CC_OUTPUT_SURFACE_MOJO_H_
-#define MOJO_CC_OUTPUT_SURFACE_MOJO_H_
-
-#include "base/macros.h"
-#include "cc/output/output_surface.h"
-#include "cc/surfaces/surface_id.h"
-#include "cc/surfaces/surface_id_allocator.h"
-#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
-
-namespace mojo {
-
-class OutputSurfaceMojoClient {
- public:
- virtual ~OutputSurfaceMojoClient() {}
-
- virtual void DidCreateSurface(cc::SurfaceId id) = 0;
-};
-
-class OutputSurfaceMojo : public cc::OutputSurface, public SurfaceClient {
- public:
- OutputSurfaceMojo(OutputSurfaceMojoClient* client,
- const scoped_refptr<cc::ContextProvider>& context_provider,
- SurfacePtr surface,
- uint32_t id_namespace);
-
- // cc::OutputSurface implementation.
- void SwapBuffers(cc::CompositorFrame* frame) override;
- bool BindToClient(cc::OutputSurfaceClient* client) override;
-
- protected:
- ~OutputSurfaceMojo() override;
-
- private:
- // SurfaceClient implementation.
- void SetIdNamespace(uint32_t id_namespace) override;
- void ReturnResources(Array<ReturnedResourcePtr> resources) override;
-
- OutputSurfaceMojoClient* output_surface_mojo_client_;
- SurfacePtr surface_;
- cc::SurfaceIdAllocator id_allocator_;
- cc::SurfaceId surface_id_;
- gfx::Size surface_size_;
-
- DISALLOW_COPY_AND_ASSIGN(OutputSurfaceMojo);
-};
-}
-
-#endif // MOJO_CC_OUTPUT_SURFACE_MOJO_H_
« no previous file with comments | « mojo/cc/BUILD.gn ('k') | mojo/cc/output_surface_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698