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

Unified Diff: components/view_manager/surfaces/top_level_display_client.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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: components/view_manager/surfaces/top_level_display_client.h
diff --git a/components/view_manager/surfaces/top_level_display_client.h b/components/view_manager/surfaces/top_level_display_client.h
deleted file mode 100644
index 475c70995a92693c6d62090f0ac8e37d86495443..0000000000000000000000000000000000000000
--- a/components/view_manager/surfaces/top_level_display_client.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2015 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 COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_
-#define COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/surfaces/display_client.h"
-#include "cc/surfaces/surface_factory.h"
-#include "cc/surfaces/surface_factory_client.h"
-#include "components/view_manager/surfaces/surfaces_context_provider.h"
-#include "components/view_manager/surfaces/surfaces_context_provider_delegate.h"
-#include "components/view_manager/surfaces/surfaces_state.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace cc {
-class Display;
-class SurfaceFactory;
-}
-
-namespace gles2 {
-class GpuState;
-}
-
-namespace surfaces {
-
-class DisplayDelegate;
-class SurfacesScheduler;
-class SurfacesState;
-
-// A TopLevelDisplayClient manages the top level surface that is rendered into a
-// provided AcceleratedWidget. Frames are submitted here. New frames are
-// scheduled to be generated here based on VSync.
-class TopLevelDisplayClient
- : public cc::DisplayClient,
- public cc::SurfaceFactoryClient,
- public surfaces::SurfacesContextProviderDelegate {
- public:
- TopLevelDisplayClient(gfx::AcceleratedWidget widget,
- const scoped_refptr<gles2::GpuState>& gpu_state,
- const scoped_refptr<SurfacesState>& surfaces_state);
- ~TopLevelDisplayClient() override;
-
- void SubmitCompositorFrame(scoped_ptr<cc::CompositorFrame> frame,
- const base::Closure& callback);
-
- private:
- // DisplayClient implementation.
- // TODO(rjkroege, fsamuel): This won't work correctly with multiple displays.
- void CommitVSyncParameters(base::TimeTicks timebase,
- base::TimeDelta interval) override;
- void OutputSurfaceLost() override;
- void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override;
-
- // SurfacesContextProviderDelegate:
- void OnContextCreated();
- void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override;
-
- // SurfaceFactoryClient implementation.
- void ReturnResources(const cc::ReturnedResourceArray& resources) override;
-
- scoped_refptr<gles2::GpuState> gpu_state_;
- scoped_refptr<SurfacesState> surfaces_state_;
- cc::SurfaceFactory factory_;
- cc::SurfaceId cc_id_;
-
- gfx::Size last_submitted_frame_size_;
- scoped_ptr<cc::CompositorFrame> pending_frame_;
-
- scoped_ptr<cc::Display> display_;
-
- DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient);
-};
-
-} // namespace surfaces
-
-#endif // COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_
« no previous file with comments | « components/view_manager/surfaces/surfaces_state.cc ('k') | components/view_manager/surfaces/top_level_display_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698