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

Unified Diff: components/mus/surfaces/top_level_display_client.cc

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
« no previous file with comments | « components/mus/surfaces/top_level_display_client.h ('k') | components/mus/test_change_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/surfaces/top_level_display_client.cc
diff --git a/components/view_manager/surfaces/top_level_display_client.cc b/components/mus/surfaces/top_level_display_client.cc
similarity index 86%
rename from components/view_manager/surfaces/top_level_display_client.cc
rename to components/mus/surfaces/top_level_display_client.cc
index 8b5091796d011a5315c49453322be1b5cbba0000..c6eeea7c5ada25e2f07327184a8e292f2bfa409c 100644
--- a/components/view_manager/surfaces/top_level_display_client.cc
+++ b/components/mus/surfaces/top_level_display_client.cc
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/view_manager/surfaces/top_level_display_client.h"
+#include "components/mus/surfaces/top_level_display_client.h"
#include "cc/output/compositor_frame.h"
#include "cc/surfaces/display.h"
-#include "components/view_manager/gles2/gpu_state.h"
-#include "components/view_manager/surfaces/surfaces_context_provider.h"
-#include "components/view_manager/surfaces/surfaces_output_surface.h"
-#include "components/view_manager/surfaces/surfaces_scheduler.h"
-#include "components/view_manager/surfaces/surfaces_state.h"
+#include "components/mus/gles2/gpu_state.h"
+#include "components/mus/surfaces/surfaces_context_provider.h"
+#include "components/mus/surfaces/surfaces_output_surface.h"
+#include "components/mus/surfaces/surfaces_scheduler.h"
+#include "components/mus/surfaces/surfaces_state.h"
namespace surfaces {
namespace {
@@ -46,8 +46,7 @@ TopLevelDisplayClient::TopLevelDisplayClient(
display_->SetSurfaceId(cc_id_, 1.f /* device_scale_factor */);
}
-void TopLevelDisplayClient::OnContextCreated() {
-}
+void TopLevelDisplayClient::OnContextCreated() {}
TopLevelDisplayClient::~TopLevelDisplayClient() {
if (display_) {
@@ -65,8 +64,8 @@ void TopLevelDisplayClient::SubmitCompositorFrame(
pending_frame_ = frame.Pass();
last_submitted_frame_size_ =
- pending_frame_->delegated_frame_data->render_pass_list.back()->
- output_rect.size();
+ pending_frame_->delegated_frame_data->render_pass_list.back()
+ ->output_rect.size();
display_->Resize(last_submitted_frame_size_);
factory_.SubmitCompositorFrame(cc_id_, pending_frame_.Pass(),
base::Bind(&CallCallback, callback));
@@ -74,8 +73,7 @@ void TopLevelDisplayClient::SubmitCompositorFrame(
}
void TopLevelDisplayClient::CommitVSyncParameters(base::TimeTicks timebase,
- base::TimeDelta interval) {
-}
+ base::TimeDelta interval) {}
void TopLevelDisplayClient::OutputSurfaceLost() {
if (!display_) // Shutdown case
@@ -92,8 +90,7 @@ void TopLevelDisplayClient::OutputSurfaceLost() {
}
void TopLevelDisplayClient::SetMemoryPolicy(
- const cc::ManagedMemoryPolicy& policy) {
-}
+ const cc::ManagedMemoryPolicy& policy) {}
void TopLevelDisplayClient::OnVSyncParametersUpdated(int64_t timebase,
int64_t interval) {
« no previous file with comments | « components/mus/surfaces/top_level_display_client.h ('k') | components/mus/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698