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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 1129883003: Pass Surface ID namespace to renderer compositors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set initial namespace value Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2744 matching lines...) Expand 10 before | Expand all | Expand 10 after
2755 void RenderWidgetHostViewAura::DelegatedFrameHostUpdateVSyncParameters( 2755 void RenderWidgetHostViewAura::DelegatedFrameHostUpdateVSyncParameters(
2756 const base::TimeTicks& timebase, 2756 const base::TimeTicks& timebase,
2757 const base::TimeDelta& interval) { 2757 const base::TimeDelta& interval) {
2758 host_->UpdateVSyncParameters(timebase, interval); 2758 host_->UpdateVSyncParameters(timebase, interval);
2759 } 2759 }
2760 2760
2761 void RenderWidgetHostViewAura::OnDidNavigateMainFrameToNewPage() { 2761 void RenderWidgetHostViewAura::OnDidNavigateMainFrameToNewPage() {
2762 ui::GestureRecognizer::Get()->CancelActiveTouches(window_); 2762 ui::GestureRecognizer::Get()->CancelActiveTouches(window_);
2763 } 2763 }
2764 2764
2765 void RenderWidgetHostViewAura::DelegatedFrameHostUpdateSurfaceIdNamespace(
2766 uint32_t surface_id_namespace) {
2767 host_->Send(new ViewMsg_UpdateSurfaceIdNamespace(host_->GetRoutingID(),
2768 surface_id_namespace));
2769 }
2770
2771 uint32_t RenderWidgetHostViewAura::GetSurfaceIdNamespace() {
2772 return delegated_frame_host_->GetSurfaceIdNamespace();
2773 }
2774
2765 //////////////////////////////////////////////////////////////////////////////// 2775 ////////////////////////////////////////////////////////////////////////////////
2766 // RenderWidgetHostViewBase, public: 2776 // RenderWidgetHostViewBase, public:
2767 2777
2768 // static 2778 // static
2769 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2779 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2770 GetScreenInfoForWindow(results, NULL); 2780 GetScreenInfoForWindow(results, NULL);
2771 } 2781 }
2772 2782
2773 } // namespace content 2783 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698