OLD | NEW |
---|---|
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_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1822 } | 1822 } |
1823 | 1823 |
1824 // static | 1824 // static |
1825 void RenderWidgetHostImpl::AcknowledgePostSubBuffer(int32 route_id, | 1825 void RenderWidgetHostImpl::AcknowledgePostSubBuffer(int32 route_id, |
1826 int gpu_host_id) { | 1826 int gpu_host_id) { |
1827 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id); | 1827 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id); |
1828 if (ui_shim) | 1828 if (ui_shim) |
1829 ui_shim->Send(new AcceleratedSurfaceMsg_PostSubBufferACK(route_id)); | 1829 ui_shim->Send(new AcceleratedSurfaceMsg_PostSubBufferACK(route_id)); |
1830 } | 1830 } |
1831 | 1831 |
1832 #if defined(USE_AURA) | |
1833 // static | |
1834 void RenderWidgetHostImpl::SendFrontSurfaceIsProtected( | |
sky
2012/06/13 16:21:23
What is aura specific here?
mmocny
2012/06/13 18:40:05
On other platforms this is not needed, because it
| |
1835 bool is_protected, | |
1836 uint32 protection_state_id, | |
1837 int32 route_id, | |
1838 int gpu_host_id) { | |
1839 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id); | |
1840 if (ui_shim) { | |
1841 ui_shim->Send(new AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected( | |
1842 route_id, is_protected, protection_state_id)); | |
1843 } | |
1844 } | |
1845 #endif | |
1846 | |
1832 void RenderWidgetHostImpl::DelayedAutoResized() { | 1847 void RenderWidgetHostImpl::DelayedAutoResized() { |
1833 gfx::Size new_size = new_auto_size_; | 1848 gfx::Size new_size = new_auto_size_; |
1834 // Clear the new_auto_size_ since the empty value is used as a flag to | 1849 // Clear the new_auto_size_ since the empty value is used as a flag to |
1835 // indicate that no callback is in progress (i.e. without this line | 1850 // indicate that no callback is in progress (i.e. without this line |
1836 // DelayedAutoResized will not get called again). | 1851 // DelayedAutoResized will not get called again). |
1837 new_auto_size_.SetSize(0, 0); | 1852 new_auto_size_.SetSize(0, 0); |
1838 if (!should_auto_resize_) | 1853 if (!should_auto_resize_) |
1839 return; | 1854 return; |
1840 | 1855 |
1841 OnRenderAutoResized(new_size); | 1856 OnRenderAutoResized(new_size); |
1842 } | 1857 } |
1843 | 1858 |
1844 } // namespace content | 1859 } // namespace content |
OLD | NEW |