chromium/services/webnn/tflite/buffer_impl_tflite.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SERVICES_WEBNN_TFLITE_BUFFER_IMPL_TFLITE_H_
#define SERVICES_WEBNN_TFLITE_BUFFER_IMPL_TFLITE_H_

#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "base/thread_annotations.h"
#include "base/types/pass_key.h"
#include "services/webnn/public/mojom/webnn_buffer.mojom-forward.h"
#include "services/webnn/queueable_resource_state.h"
#include "services/webnn/webnn_buffer_impl.h"

namespace webnn {

class WebNNContextImpl;

namespace tflite {

class BufferContent;

// A simple implementation of WebNNBuffer which uses normal CPU buffers
// since TFLite is currently only configured to use CPU delegates.
class BufferImplTflite final : public WebNNBufferImpl {};

}  // namespace tflite

}  // namespace webnn

#endif  // SERVICES_WEBNN_TFLITE_BUFFER_IMPL_TFLITE_H_