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_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 | 8 |
9 #include "base/android/sys_utils.h" | 9 #include "base/android/sys_utils.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 | 751 |
752 content_view_core_->ShowDisambiguationPopup(target_rect, zoomed_bitmap); | 752 content_view_core_->ShowDisambiguationPopup(target_rect, zoomed_bitmap); |
753 } | 753 } |
754 | 754 |
755 scoped_ptr<SyntheticGestureTarget> | 755 scoped_ptr<SyntheticGestureTarget> |
756 RenderWidgetHostViewAndroid::CreateSyntheticGestureTarget() { | 756 RenderWidgetHostViewAndroid::CreateSyntheticGestureTarget() { |
757 return scoped_ptr<SyntheticGestureTarget>(new SyntheticGestureTargetAndroid( | 757 return scoped_ptr<SyntheticGestureTarget>(new SyntheticGestureTargetAndroid( |
758 host_, content_view_core_->CreateTouchEventSynthesizer())); | 758 host_, content_view_core_->CreateTouchEventSynthesizer())); |
759 } | 759 } |
760 | 760 |
761 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { | |
762 } | |
763 | |
764 void RenderWidgetHostViewAndroid::SendDelegatedFrameAck( | 761 void RenderWidgetHostViewAndroid::SendDelegatedFrameAck( |
765 uint32 output_surface_id) { | 762 uint32 output_surface_id) { |
766 DCHECK(host_); | 763 DCHECK(host_); |
767 cc::CompositorFrameAck ack; | 764 cc::CompositorFrameAck ack; |
768 if (resource_collection_.get()) | 765 if (resource_collection_.get()) |
769 resource_collection_->TakeUnusedResourcesForChildCompositor(&ack.resources); | 766 resource_collection_->TakeUnusedResourcesForChildCompositor(&ack.resources); |
770 RenderWidgetHostImpl::SendSwapCompositorFrameAck(host_->GetRoutingID(), | 767 RenderWidgetHostImpl::SendSwapCompositorFrameAck(host_->GetRoutingID(), |
771 output_surface_id, | 768 output_surface_id, |
772 host_->GetProcess()->GetID(), | 769 host_->GetProcess()->GetID(), |
773 ack); | 770 ack); |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 results->availableRect = display.work_area(); | 1452 results->availableRect = display.work_area(); |
1456 results->deviceScaleFactor = display.device_scale_factor(); | 1453 results->deviceScaleFactor = display.device_scale_factor(); |
1457 results->orientationAngle = display.RotationAsDegree(); | 1454 results->orientationAngle = display.RotationAsDegree(); |
1458 gfx::DeviceDisplayInfo info; | 1455 gfx::DeviceDisplayInfo info; |
1459 results->depth = info.GetBitsPerPixel(); | 1456 results->depth = info.GetBitsPerPixel(); |
1460 results->depthPerComponent = info.GetBitsPerComponent(); | 1457 results->depthPerComponent = info.GetBitsPerComponent(); |
1461 results->isMonochrome = (results->depthPerComponent == 0); | 1458 results->isMonochrome = (results->depthPerComponent == 0); |
1462 } | 1459 } |
1463 | 1460 |
1464 } // namespace content | 1461 } // namespace content |
OLD | NEW |