| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <math.h> | 5 #include <math.h> |
| 6 | 6 |
| 7 #include "services/keyboard_native/view_observer_delegate.h" | 7 #include "services/keyboard_native/view_observer_delegate.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
| 11 #include "mojo/gpu/gl_texture.h" | 11 #include "mojo/gpu/gl_texture.h" |
| 12 #include "mojo/public/cpp/application/application_impl.h" | 12 #include "mojo/public/cpp/application/application_impl.h" |
| 13 #include "mojo/public/cpp/application/connect.h" | 13 #include "mojo/public/cpp/application/connect.h" |
| 14 #include "mojo/services/prediction/public/interfaces/prediction.mojom.h" | 14 #include "mojo/services/prediction/interfaces/prediction.mojom.h" |
| 15 #include "mojo/skia/ganesh_surface.h" | 15 #include "mojo/skia/ganesh_surface.h" |
| 16 #include "services/keyboard_native/clip_animation.h" | 16 #include "services/keyboard_native/clip_animation.h" |
| 17 #include "services/keyboard_native/keyboard_service_impl.h" | 17 #include "services/keyboard_native/keyboard_service_impl.h" |
| 18 #include "services/keyboard_native/predictor.h" | 18 #include "services/keyboard_native/predictor.h" |
| 19 #include "skia/ext/refptr.h" | 19 #include "skia/ext/refptr.h" |
| 20 #include "third_party/skia/include/core/SkCanvas.h" | 20 #include "third_party/skia/include/core/SkCanvas.h" |
| 21 #include "third_party/skia/include/core/SkTypeface.h" | 21 #include "third_party/skia/include/core/SkTypeface.h" |
| 22 #include "ui/gfx/geometry/rect_f.h" | 22 #include "ui/gfx/geometry/rect_f.h" |
| 23 #include "ui/gfx/shadow_value.h" | 23 #include "ui/gfx/shadow_value.h" |
| 24 #include "ui/gfx/skia_util.h" | 24 #include "ui/gfx/skia_util.h" |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 377 |
| 378 void ViewObserverDelegate::OnViewDestroyed(mojo::View* view) { | 378 void ViewObserverDelegate::OnViewDestroyed(mojo::View* view) { |
| 379 if (view_ == view) { | 379 if (view_ == view) { |
| 380 view_->RemoveObserver(this); | 380 view_->RemoveObserver(this); |
| 381 view_ = nullptr; | 381 view_ = nullptr; |
| 382 gl_context_->Destroy(); | 382 gl_context_->Destroy(); |
| 383 } | 383 } |
| 384 } | 384 } |
| 385 | 385 |
| 386 } // namespace keyboard | 386 } // namespace keyboard |
| OLD | NEW |