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

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

Issue 1989453003: cc: Add ScopedReadLockGpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix aura typo Created 4 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 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 RenderViewHostDelegate* delegate = rvh->GetDelegate(); 2753 RenderViewHostDelegate* delegate = rvh->GetDelegate();
2754 if (!delegate) 2754 if (!delegate)
2755 return nullptr; 2755 return nullptr;
2756 2756
2757 return delegate->GetDelegateView(); 2757 return delegate->GetDelegateView();
2758 } 2758 }
2759 2759
2760 //////////////////////////////////////////////////////////////////////////////// 2760 ////////////////////////////////////////////////////////////////////////////////
2761 // DelegatedFrameHost, public: 2761 // DelegatedFrameHost, public:
2762 2762
2763 int RenderWidgetHostViewAura::DelegatedFrameHostGetGpuMemoryBufferClientId()
2764 const {
2765 return host_->GetProcess()->GetID();
2766 }
2763 ui::Layer* RenderWidgetHostViewAura::DelegatedFrameHostGetLayer() const { 2767 ui::Layer* RenderWidgetHostViewAura::DelegatedFrameHostGetLayer() const {
2764 return window_->layer(); 2768 return window_->layer();
2765 } 2769 }
2766 2770
2767 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const { 2771 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const {
2768 return !host_->is_hidden(); 2772 return !host_->is_hidden();
2769 } 2773 }
2770 2774
2771 SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor( 2775 SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor(
2772 SkColor color) const { 2776 SkColor color) const {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 2869
2866 //////////////////////////////////////////////////////////////////////////////// 2870 ////////////////////////////////////////////////////////////////////////////////
2867 // RenderWidgetHostViewBase, public: 2871 // RenderWidgetHostViewBase, public:
2868 2872
2869 // static 2873 // static
2870 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2874 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2871 GetScreenInfoForWindow(results, NULL); 2875 GetScreenInfoForWindow(results, NULL);
2872 } 2876 }
2873 2877
2874 } // namespace content 2878 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698