| 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 | 723 |
| 724 callback.Run(SkBitmap(), content::READBACK_FAILED); | 724 callback.Run(SkBitmap(), content::READBACK_FAILED); |
| 725 } | 725 } |
| 726 | 726 |
| 727 bool RenderWidgetHostImpl::CanCopyFromBackingStore() { | 727 bool RenderWidgetHostImpl::CanCopyFromBackingStore() { |
| 728 if (view_) | 728 if (view_) |
| 729 return view_->IsSurfaceAvailableForCopy(); | 729 return view_->IsSurfaceAvailableForCopy(); |
| 730 return false; | 730 return false; |
| 731 } | 731 } |
| 732 | 732 |
| 733 #if defined(OS_ANDROID) | 733 #if defined(OS_ANDROID) && !defined(USE_AURA) |
| 734 void RenderWidgetHostImpl::LockBackingStore() { | 734 void RenderWidgetHostImpl::LockBackingStore() { |
| 735 if (view_) | 735 if (view_) |
| 736 view_->LockCompositingSurface(); | 736 view_->LockCompositingSurface(); |
| 737 } | 737 } |
| 738 | 738 |
| 739 void RenderWidgetHostImpl::UnlockBackingStore() { | 739 void RenderWidgetHostImpl::UnlockBackingStore() { |
| 740 if (view_) | 740 if (view_) |
| 741 view_->UnlockCompositingSurface(); | 741 view_->UnlockCompositingSurface(); |
| 742 } | 742 } |
| 743 #endif | 743 #endif |
| (...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2085 } | 2085 } |
| 2086 | 2086 |
| 2087 #if defined(OS_WIN) | 2087 #if defined(OS_WIN) |
| 2088 gfx::NativeViewAccessible | 2088 gfx::NativeViewAccessible |
| 2089 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2089 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2090 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2090 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2091 } | 2091 } |
| 2092 #endif | 2092 #endif |
| 2093 | 2093 |
| 2094 } // namespace content | 2094 } // namespace content |
| OLD | NEW |