Skip to content

Commit

Permalink
[webview_flutter] Update LWE (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
  • Loading branch information
bwikbs committed Feb 1, 2021
1 parent 9e26386 commit 749930e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/webview_flutter/tizen/inc/lwe/LWEWebView.h
Expand Up @@ -169,7 +169,7 @@ class LWE_EXPORT WebContainer {
const std::function<void(WebContainer*, bool mayNeedsSync)>&
onGLSwapBuffers,
const std::function<ExternalImageInfo(void)>& prepareImageCb,
const std::function<void(WebContainer*, bool isRendered)>& renderedCb,
const std::function<void(WebContainer*, bool needsFlush)>& flushCb,
float devicePixelRatio, const char* defaultFontName, const char* locale,
const char* timezoneID);
// <--- end of function set for render with OpenGL
Expand Down
Binary file not shown.
6 changes: 1 addition & 5 deletions packages/webview_flutter/tizen/src/webview.cc
Expand Up @@ -518,11 +518,7 @@ void WebView::InitWebView() {
[this]() -> LWE::WebContainer::ExternalImageInfo {
LWE::WebContainer::ExternalImageInfo result;
tbmSurface_ = tbm_surface_create(width_, height_, TBM_FORMAT_ARGB8888);
tbm_surface_info_s tbmSurfaceInfo;
if (tbm_surface_map(tbmSurface_, TBM_SURF_OPTION_WRITE,
&tbmSurfaceInfo) == TBM_SURFACE_ERROR_NONE) {
result.imageAddress = (void*)tbmSurface_;
}
result.imageAddress = (void*)tbmSurface_;
return result;
},
[this](LWE::WebContainer* c, bool isRendered) {
Expand Down

0 comments on commit 749930e

Please sign in to comment.