Skip to content

Commit 749930e

Browse files
authored
[webview_flutter] Update LWE (flutter-tizen#28)
Signed-off-by: MuHong Byun <[email protected]>
1 parent 9e26386 commit 749930e

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed
Binary file not shown.

packages/webview_flutter/tizen/inc/lwe/LWEWebView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class LWE_EXPORT WebContainer {
169169
const std::function<void(WebContainer*, bool mayNeedsSync)>&
170170
onGLSwapBuffers,
171171
const std::function<ExternalImageInfo(void)>& prepareImageCb,
172-
const std::function<void(WebContainer*, bool isRendered)>& renderedCb,
172+
const std::function<void(WebContainer*, bool needsFlush)>& flushCb,
173173
float devicePixelRatio, const char* defaultFontName, const char* locale,
174174
const char* timezoneID);
175175
// <--- end of function set for render with OpenGL
Binary file not shown.

packages/webview_flutter/tizen/src/webview.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,7 @@ void WebView::InitWebView() {
518518
[this]() -> LWE::WebContainer::ExternalImageInfo {
519519
LWE::WebContainer::ExternalImageInfo result;
520520
tbmSurface_ = tbm_surface_create(width_, height_, TBM_FORMAT_ARGB8888);
521-
tbm_surface_info_s tbmSurfaceInfo;
522-
if (tbm_surface_map(tbmSurface_, TBM_SURF_OPTION_WRITE,
523-
&tbmSurfaceInfo) == TBM_SURFACE_ERROR_NONE) {
524-
result.imageAddress = (void*)tbmSurface_;
525-
}
521+
result.imageAddress = (void*)tbmSurface_;
526522
return result;
527523
},
528524
[this](LWE::WebContainer* c, bool isRendered) {

0 commit comments

Comments
 (0)