Do not expose DrishtiGraphGPUData.h in public header

This class is an implementation detail.

PiperOrigin-RevId: 490530823
This commit is contained in:
Camillo Lugaresi 2022-11-23 10:09:42 -08:00 committed by Copybara-Service
parent b5189758f7
commit 3c53ec2cdb
4 changed files with 18 additions and 20 deletions

View File

@ -550,12 +550,7 @@ cc_library(
name = "gpu_shared_data_header",
textual_hdrs = [
"gpu_shared_data_internal.h",
] + select({
"//conditions:default": [],
"//mediapipe:apple": [
"MPPGraphGPUData.h",
],
}),
visibility = ["//visibility:private"],
deps = [
":gl_base",

View File

@ -21,13 +21,11 @@
#include "mediapipe/framework/packet.h"
#include "mediapipe/framework/packet_type.h"
#include "mediapipe/gpu/MPPGraphGPUData.h"
#include "mediapipe/gpu/gpu_shared_data_internal.h"
NS_ASSUME_NONNULL_BEGIN
@interface MPPMetalHelper : NSObject {
MPPGraphGPUData* _gpuShared;
}
- (instancetype)init NS_UNAVAILABLE;

View File

@ -14,11 +14,17 @@
#import "mediapipe/gpu/MPPMetalHelper.h"
#import "mediapipe/gpu/MPPGraphGPUData.h"
#import "mediapipe/gpu/graph_support.h"
#import "GTMDefines.h"
#include "mediapipe/framework/port/ret_check.h"
@interface MPPMetalHelper () {
MPPGraphGPUData* _gpuShared;
}
@end
namespace mediapipe {
// Using a C++ class so it can be declared as a friend of LegacyCalculatorSupport.

View File

@ -24,7 +24,6 @@
#include "mediapipe/framework/formats/image.h"
#include "mediapipe/framework/formats/image_frame.h"
#include "mediapipe/framework/graph_service.h"
#include "mediapipe/gpu/MPPGraphGPUData.h"
#include "mediapipe/gpu/gl_base.h"
#include "mediapipe/gpu/gpu_shared_data_internal.h"
#include "mediapipe/objc/util.h"