• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2019 The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef COMPUTEPIPE_RUNNER_STREAM_MANAGER_INIT_H
16 #define COMPUTEPIPE_RUNNER_STREAM_MANAGER_INIT_H
17 
18 #include <functional>
19 #include <memory>
20 
21 #include "MemHandle.h"
22 #include "StreamEngineInterface.h"
23 #include "types/Status.h"
24 
25 namespace android {
26 namespace automotive {
27 namespace computepipe {
28 namespace runner {
29 namespace stream_manager {
30 
31 class StreamManagerInit {
32   public:
33     virtual void setEngineInterface(std::shared_ptr<StreamEngineInterface> engine) = 0;
34     /* Set Max in flight packets based on client specification */
35     virtual Status setMaxInFlightPackets(uint32_t maxPackets) = 0;
36     virtual ~StreamManagerInit() = default;
37 };
38 
39 }  // namespace stream_manager
40 }  // namespace runner
41 }  // namespace computepipe
42 }  // namespace automotive
43 }  // namespace android
44 #endif
45