Internal change
PiperOrigin-RevId: 514421618
This commit is contained in:
committed by
Copybara-Service
parent
96b2958f18
commit
6c68d4c358
@@ -116,6 +116,8 @@ GpuResources::~GpuResources() {
|
||||
#endif // __APPLE__
|
||||
}
|
||||
|
||||
extern const GraphService<GpuResources> kGpuService;
|
||||
|
||||
absl::Status GpuResources::PrepareGpuNode(CalculatorNode* node) {
|
||||
CHECK(ContainsKey(node->Contract().ServiceRequests(), kGpuService.key));
|
||||
std::string node_id = node->GetCalculatorState().NodeName();
|
||||
@@ -195,8 +197,6 @@ GlContext::StatusOrGlContext GpuResources::GetOrCreateGlContext(
|
||||
|
||||
GpuSharedData::GpuSharedData() : GpuSharedData(kPlatformGlContextNone) {}
|
||||
|
||||
extern const GraphService<GpuResources> kGpuService;
|
||||
|
||||
#if !MEDIAPIPE_GPU_BUFFER_USE_CV_PIXEL_BUFFER
|
||||
static std::shared_ptr<GlTextureBuffer> GetGlTextureBufferFromPool(
|
||||
int width, int height, GpuBufferFormat format) {
|
||||
|
||||
Reference in New Issue
Block a user