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 <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 host_->Send(new ViewMsg_ReclaimCompositorResources(host_->GetRoutingID(), | 954 host_->Send(new ViewMsg_ReclaimCompositorResources(host_->GetRoutingID(), |
955 output_surface_id, ack)); | 955 output_surface_id, ack)); |
956 } | 956 } |
957 | 957 |
958 void RenderWidgetHostViewAndroid::ReturnResources( | 958 void RenderWidgetHostViewAndroid::ReturnResources( |
959 const cc::ReturnedResourceArray& resources) { | 959 const cc::ReturnedResourceArray& resources) { |
960 if (resources.empty()) | 960 if (resources.empty()) |
961 return; | 961 return; |
962 std::copy(resources.begin(), resources.end(), | 962 std::copy(resources.begin(), resources.end(), |
963 std::back_inserter(surface_returned_resources_)); | 963 std::back_inserter(surface_returned_resources_)); |
964 if (!ack_callbacks_.size()) | 964 if (ack_callbacks_.empty()) |
965 SendReturnedDelegatedResources(last_output_surface_id_); | 965 SendReturnedDelegatedResources(last_output_surface_id_); |
966 } | 966 } |
967 | 967 |
968 void RenderWidgetHostViewAndroid::SetBeginFrameSource( | 968 void RenderWidgetHostViewAndroid::SetBeginFrameSource( |
969 cc::BeginFrameSource* begin_frame_source) { | 969 cc::BeginFrameSource* begin_frame_source) { |
970 // TODO(tansell): Hook this up. | 970 // TODO(tansell): Hook this up. |
971 } | 971 } |
972 | 972 |
973 void RenderWidgetHostViewAndroid::DestroyDelegatedContent() { | 973 void RenderWidgetHostViewAndroid::DestroyDelegatedContent() { |
974 RemoveLayers(); | 974 RemoveLayers(); |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 case ui::MotionEvent::ACTION_UP: | 1990 case ui::MotionEvent::ACTION_UP: |
1991 case ui::MotionEvent::ACTION_POINTER_UP: | 1991 case ui::MotionEvent::ACTION_POINTER_UP: |
1992 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", | 1992 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", |
1993 delta.InMicroseconds(), 1, 1000000, 50); | 1993 delta.InMicroseconds(), 1, 1000000, 50); |
1994 default: | 1994 default: |
1995 return; | 1995 return; |
1996 } | 1996 } |
1997 } | 1997 } |
1998 | 1998 |
1999 } // namespace content | 1999 } // namespace content |
OLD | NEW |