| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "jni/dart_host.h" | 5 #include "embedders/android/dart_host.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 | 9 |
| 10 #include "jni/log.h" | 10 #include "embedders/android/log.h" |
| 11 | 11 |
| 12 DartHost::DartHost(Context *context) | 12 DartHost::DartHost(Context *context) |
| 13 : graphics_(context->graphics), | 13 : graphics_(context->graphics), |
| 14 input_handler_(context->input_handler), | 14 input_handler_(context->input_handler), |
| 15 sound_service_(context->sound_service), | 15 sound_service_(context->sound_service), |
| 16 timer_(context->timer), | 16 timer_(context->timer), |
| 17 vm_glue_(context->vm_glue), | 17 vm_glue_(context->vm_glue), |
| 18 active_(false) { | 18 active_(false) { |
| 19 LOGI("Creating DartHost"); | 19 LOGI("Creating DartHost"); |
| 20 } | 20 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 120 } |
| 121 | 121 |
| 122 void DartHost::OnLostFocus() { | 122 void DartHost::OnLostFocus() { |
| 123 LOGI("DartHost lost focus"); | 123 LOGI("DartHost lost focus"); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void DartHost::Clear() { | 126 void DartHost::Clear() { |
| 127 memset(window_buffer_.bits, 0, | 127 memset(window_buffer_.bits, 0, |
| 128 window_buffer_.stride * window_buffer_.height * sizeof(int32_t)); | 128 window_buffer_.stride * window_buffer_.height * sizeof(int32_t)); |
| 129 } | 129 } |
| OLD | NEW |