| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/paint_preview/android/jni_headers/PaintPreviewCompositorUtils_jni.h" |
| #include "components/paint_preview/browser/warm_compositor.h" |
| |
| namespace paint_preview { |
| |
| void JNI_PaintPreviewCompositorUtils_WarmupCompositor(JNIEnv* env) { |
| WarmCompositor::GetInstance()->WarmupCompositor(); |
| } |
| |
| jboolean JNI_PaintPreviewCompositorUtils_StopWarmCompositor(JNIEnv* env) { |
| return static_cast<jboolean>(WarmCompositor::GetInstance()->StopCompositor()); |
| } |
| |
| } // namespace paint_preview |