Skip to content

Commit 3fd69c4

Browse files
committed
Create a dummy external_texture_surface_gl_linux.cc
1 parent 5f3dd22 commit 3fd69c4

File tree

4 files changed

+43
-6
lines changed

4 files changed

+43
-6
lines changed

shell/platform/tizen/BUILD.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ template("embedder") {
154154
"channels/platform_channel.cc",
155155
"channels/settings_channel.cc",
156156
"channels/settings_channel_tizen.cc",
157-
"external_texture_surface_gl.cc",
157+
"external_texture_surface_gl_tizen.cc",
158158
"system_utils_tizen.cc",
159159
]
160160

@@ -177,6 +177,7 @@ template("embedder") {
177177
"channels/platform_channel_stub.cc",
178178
"channels/settings_channel.cc",
179179
"channels/settings_channel_linux.cc",
180+
"external_texture_surface_gl_linux.cc",
180181
"system_utils_linux.cc",
181182
]
182183
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Copyright 2021 Samsung Electronics Co., Ltd. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
#pragma clang diagnostic push
6+
#pragma clang diagnostic ignored "-Wunused-private-field"
7+
#include "external_texture_surface_gl.h"
8+
#pragma clang diagnostic pop
9+
10+
#include "flutter/shell/platform/common/public/flutter_texture_registrar.h"
11+
#include "flutter/shell/platform/tizen/logger.h"
12+
13+
namespace flutter {
14+
15+
ExternalTextureSurfaceGL::ExternalTextureSurfaceGL(
16+
FlutterDesktopGpuBufferTextureCallback texture_callback,
17+
FlutterDesktopGpuBufferDestructionCallback destruction_callback,
18+
void* user_data)
19+
: ExternalTexture(),
20+
texture_callback_(texture_callback),
21+
destruction_callback_(destruction_callback),
22+
user_data_(user_data) {}
23+
24+
ExternalTextureSurfaceGL::~ExternalTextureSurfaceGL() {
25+
FT_UNIMPLEMENTED();
26+
}
27+
28+
bool ExternalTextureSurfaceGL::PopulateTexture(
29+
size_t width,
30+
size_t height,
31+
FlutterOpenGLTexture* opengl_texture) {
32+
FT_UNIMPLEMENTED();
33+
return false;
34+
}
35+
36+
void ExternalTextureSurfaceGL::OnDestruction() {
37+
FT_UNIMPLEMENTED();
38+
}
39+
40+
} // namespace flutter

shell/platform/tizen/external_texture_surface_gl.cc renamed to shell/platform/tizen/external_texture_surface_gl_tizen.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved.
1+
// Copyright 2021 Samsung Electronics Co., Ltd. All rights reserved.
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

shell/platform/tizen/flutter_tizen_texture_registrar.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
#include <mutex>
99

1010
#include "flutter/shell/platform/tizen/external_texture_pixel_gl.h"
11-
#ifndef __X64_SHELL__
1211
#include "flutter/shell/platform/tizen/external_texture_surface_gl.h"
13-
#endif
1412
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
1513
#include "flutter/shell/platform/tizen/logger.h"
1614

@@ -96,14 +94,12 @@ FlutterTizenTextureRegistrar::CreateExternalTexture(
9694
texture_info->pixel_buffer_config.callback,
9795
texture_info->pixel_buffer_config.user_data);
9896
break;
99-
#ifndef __X64_SHELL__
10097
case kFlutterDesktopGpuBufferTexture:
10198
return std::make_unique<ExternalTextureSurfaceGL>(
10299
texture_info->gpu_buffer_config.callback,
103100
texture_info->gpu_buffer_config.destruction_callback,
104101
texture_info->gpu_buffer_config.user_data);
105102
break;
106-
#endif
107103
default:
108104
FT_LOG(Error) << "Invalid texture type.";
109105
return nullptr;

0 commit comments

Comments
 (0)