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

Unified Diff: services/native_viewport/viewport_surface.h

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « services/native_viewport/onscreen_context_provider.cc ('k') | services/native_viewport/viewport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/viewport_surface.h
diff --git a/services/native_viewport/viewport_surface.h b/services/native_viewport/viewport_surface.h
deleted file mode 100644
index a96480fac778ad3faad4ce94a52e0a2019e47dc7..0000000000000000000000000000000000000000
--- a/services/native_viewport/viewport_surface.h
+++ /dev/null
@@ -1,48 +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 SERVICES_NATIVE_VIEWPORT_VIEWPORT_SURFACE_H_
-#define SERVICES_NATIVE_VIEWPORT_VIEWPORT_SURFACE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "cc/surfaces/surface_id.h"
-#include "mojo/services/gpu/public/interfaces/gpu.mojom.h"
-#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/size.h"
-
-namespace native_viewport {
-
-// This manages the surface that draws to a particular NativeViewport instance.
-class ViewportSurface {
- public:
- ViewportSurface(mojo::SurfacePtr surface,
- mojo::Gpu* gpu_service,
- const gfx::Size& size,
- cc::SurfaceId child_id);
- ~ViewportSurface();
-
- void SetWidgetId(uint64_t widget_id);
- void SetSize(const gfx::Size& size);
- void SetChildId(cc::SurfaceId child_id);
-
- private:
- void BindSurfaceToNativeViewport();
- void SubmitFrame();
-
- mojo::SurfacePtr surface_;
- mojo::Gpu* gpu_service_;
- uint64_t widget_id_;
- gfx::Size size_;
- bool gles2_bound_surface_created_;
- cc::SurfaceId child_id_;
- base::WeakPtrFactory<ViewportSurface> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewportSurface);
-};
-
-} // namespace native_viewport
-
-#endif // SERVICES_NATIVE_VIEWPORT_VIEWPORT_SURFACE_H_
« no previous file with comments | « services/native_viewport/onscreen_context_provider.cc ('k') | services/native_viewport/viewport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698