| 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 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 | 766 |
| 767 callback.Run(SkBitmap(), content::READBACK_FAILED); | 767 callback.Run(SkBitmap(), content::READBACK_FAILED); |
| 768 } | 768 } |
| 769 | 769 |
| 770 bool RenderWidgetHostImpl::CanCopyFromBackingStore() { | 770 bool RenderWidgetHostImpl::CanCopyFromBackingStore() { |
| 771 if (view_) | 771 if (view_) |
| 772 return view_->IsSurfaceAvailableForCopy(); | 772 return view_->IsSurfaceAvailableForCopy(); |
| 773 return false; | 773 return false; |
| 774 } | 774 } |
| 775 | 775 |
| 776 #if defined(OS_ANDROID) | 776 #if defined(OS_ANDROID) && !defined(USE_AURA) |
| 777 void RenderWidgetHostImpl::LockBackingStore() { | 777 void RenderWidgetHostImpl::LockBackingStore() { |
| 778 if (view_) | 778 if (view_) |
| 779 view_->LockCompositingSurface(); | 779 view_->LockCompositingSurface(); |
| 780 } | 780 } |
| 781 | 781 |
| 782 void RenderWidgetHostImpl::UnlockBackingStore() { | 782 void RenderWidgetHostImpl::UnlockBackingStore() { |
| 783 if (view_) | 783 if (view_) |
| 784 view_->UnlockCompositingSurface(); | 784 view_->UnlockCompositingSurface(); |
| 785 } | 785 } |
| 786 #endif | 786 #endif |
| (...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 } | 2193 } |
| 2194 | 2194 |
| 2195 #if defined(OS_WIN) | 2195 #if defined(OS_WIN) |
| 2196 gfx::NativeViewAccessible | 2196 gfx::NativeViewAccessible |
| 2197 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2197 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2198 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2198 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2199 } | 2199 } |
| 2200 #endif | 2200 #endif |
| 2201 | 2201 |
| 2202 } // namespace content | 2202 } // namespace content |
| OLD | NEW |