blob: 2b04d28223738232d6e5debb95da2d7a80b3d3cc [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/paint_preview/browser/warm_compositor.h"
// Must come after all headers that specialize FromJniType() / ToJniType().
#include "chrome/browser/paint_preview/android/jni_headers/PaintPreviewCompositorUtils_jni.h"
namespace paint_preview {
static void JNI_PaintPreviewCompositorUtils_WarmupCompositor(JNIEnv* env) {
WarmCompositor::GetInstance()->WarmupCompositor();
}
static jboolean JNI_PaintPreviewCompositorUtils_StopWarmCompositor(
JNIEnv* env) {
return static_cast<jboolean>(WarmCompositor::GetInstance()->StopCompositor());
}
} // namespace paint_preview
DEFINE_JNI(PaintPreviewCompositorUtils)