| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/android/composited_touch_handle_drawable.h" | 5 #include "content/browser/android/composited_touch_handle_drawable.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | |
| 8 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/trace_event/trace_event.h" |
| 10 #include "cc/layers/ui_resource_layer.h" | 10 #include "cc/layers/ui_resource_layer.h" |
| 11 #include "jni/HandleViewResources_jni.h" | 11 #include "jni/HandleViewResources_jni.h" |
| 12 #include "ui/gfx/android/java_bitmap.h" | 12 #include "ui/gfx/android/java_bitmap.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 static SkBitmap CreateSkBitmapFromJavaBitmap( | 18 static SkBitmap CreateSkBitmapFromJavaBitmap( |
| 19 base::android::ScopedJavaLocalRef<jobject> jbitmap) { | 19 base::android::ScopedJavaLocalRef<jobject> jbitmap) { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void CompositedTouchHandleDrawable::UpdateLayerPosition() { | 157 void CompositedTouchHandleDrawable::UpdateLayerPosition() { |
| 158 layer_->SetPosition(focal_position_ - focal_offset_from_origin_); | 158 layer_->SetPosition(focal_position_ - focal_offset_from_origin_); |
| 159 } | 159 } |
| 160 | 160 |
| 161 // static | 161 // static |
| 162 bool CompositedTouchHandleDrawable::RegisterHandleViewResources(JNIEnv* env) { | 162 bool CompositedTouchHandleDrawable::RegisterHandleViewResources(JNIEnv* env) { |
| 163 return RegisterNativesImpl(env); | 163 return RegisterNativesImpl(env); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace content | 166 } // namespace content |
| OLD | NEW |