| 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 <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 | 826 |
| 827 callback.Run(SkBitmap(), content::READBACK_FAILED); | 827 callback.Run(SkBitmap(), content::READBACK_FAILED); |
| 828 } | 828 } |
| 829 | 829 |
| 830 bool RenderWidgetHostImpl::CanCopyFromBackingStore() { | 830 bool RenderWidgetHostImpl::CanCopyFromBackingStore() { |
| 831 if (view_) | 831 if (view_) |
| 832 return view_->IsSurfaceAvailableForCopy(); | 832 return view_->IsSurfaceAvailableForCopy(); |
| 833 return false; | 833 return false; |
| 834 } | 834 } |
| 835 | 835 |
| 836 void RenderWidgetHostImpl::LockBackingStore() { | |
| 837 if (view_) | |
| 838 view_->LockCompositingSurface(); | |
| 839 } | |
| 840 | |
| 841 void RenderWidgetHostImpl::UnlockBackingStore() { | |
| 842 if (view_) | |
| 843 view_->UnlockCompositingSurface(); | |
| 844 } | |
| 845 | |
| 846 #if defined(OS_MACOSX) | 836 #if defined(OS_MACOSX) |
| 847 void RenderWidgetHostImpl::PauseForPendingResizeOrRepaints() { | 837 void RenderWidgetHostImpl::PauseForPendingResizeOrRepaints() { |
| 848 TRACE_EVENT0("browser", | 838 TRACE_EVENT0("browser", |
| 849 "RenderWidgetHostImpl::PauseForPendingResizeOrRepaints"); | 839 "RenderWidgetHostImpl::PauseForPendingResizeOrRepaints"); |
| 850 | 840 |
| 851 if (!CanPauseForPendingResizeOrRepaints()) | 841 if (!CanPauseForPendingResizeOrRepaints()) |
| 852 return; | 842 return; |
| 853 | 843 |
| 854 WaitForSurface(); | 844 WaitForSurface(); |
| 855 } | 845 } |
| (...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2516 // different from the receiver's. | 2506 // different from the receiver's. |
| 2517 file_system_file.url = | 2507 file_system_file.url = |
| 2518 GURL(storage::GetIsolatedFileSystemRootURIString( | 2508 GURL(storage::GetIsolatedFileSystemRootURIString( |
| 2519 file_system_url.origin(), filesystem_id, std::string()) | 2509 file_system_url.origin(), filesystem_id, std::string()) |
| 2520 .append(register_name)); | 2510 .append(register_name)); |
| 2521 file_system_file.filesystem_id = filesystem_id; | 2511 file_system_file.filesystem_id = filesystem_id; |
| 2522 } | 2512 } |
| 2523 } | 2513 } |
| 2524 | 2514 |
| 2525 } // namespace content | 2515 } // namespace content |
| OLD | NEW |