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