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

Unified Diff: services/native_viewport/viewport_surface.h

Issue 871373015: De-Client Surface interface (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
Index: services/native_viewport/viewport_surface.h
diff --git a/services/native_viewport/viewport_surface.h b/services/native_viewport/viewport_surface.h
index d5e691ce1cd280a7266922ccb8057b4dcb1c522c..a96480fac778ad3faad4ce94a52e0a2019e47dc7 100644
--- a/services/native_viewport/viewport_surface.h
+++ b/services/native_viewport/viewport_surface.h
@@ -16,13 +16,13 @@
namespace native_viewport {
// This manages the surface that draws to a particular NativeViewport instance.
-class ViewportSurface : public mojo::SurfaceClient {
+class ViewportSurface {
public:
ViewportSurface(mojo::SurfacePtr surface,
mojo::Gpu* gpu_service,
const gfx::Size& size,
cc::SurfaceId child_id);
- ~ViewportSurface() override;
+ ~ViewportSurface();
void SetWidgetId(uint64_t widget_id);
void SetSize(const gfx::Size& size);
@@ -32,11 +32,6 @@ class ViewportSurface : public mojo::SurfaceClient {
void BindSurfaceToNativeViewport();
void SubmitFrame();
- // SurfaceClient implementation.
- void SetIdNamespace(uint32_t id_namespace) override;
- void ReturnResources(
- mojo::Array<mojo::ReturnedResourcePtr> resources) override;
-
mojo::SurfacePtr surface_;
mojo::Gpu* gpu_service_;
uint64_t widget_id_;

Powered by Google App Engine
This is Rietveld 408576698