Skip to content

Commit d0716ae

Browse files
committed
Resolve conflicts & additional clean-up
1 parent 66a0653 commit d0716ae

5 files changed

+17
-18
lines changed

shell/platform/tizen/external_texture_pixel_gl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "flutter/shell/platform/tizen/external_texture_pixel_gl.h"
5+
#include "external_texture_pixel_gl.h"
66

77
#ifdef TIZEN_RENDERER_EVAS_GL
88
#undef EFL_BETA_API_SUPPORT

shell/platform/tizen/external_texture_pixel_gl_stub.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "flutter/shell/platform/tizen/external_texture_pixel_gl.h"
5+
#include "external_texture_pixel_gl.h"
66

77
namespace flutter {
88

shell/platform/tizen/external_texture_surface_gl.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
#include "external_texture_surface_gl.h"
66

7-
#include "flutter/shell/platform/common/public/flutter_texture_registrar.h"
8-
97
#ifdef TIZEN_RENDERER_EVAS_GL
108
#undef EFL_BETA_API_SUPPORT
119
#include <Evas_GL_GLES3_Helpers.h>
@@ -20,6 +18,7 @@ EVAS_GL_GLOBAL_GLES3_DECLARE();
2018

2119
#include <tbm_surface.h>
2220

21+
#include "flutter/shell/platform/common/public/flutter_texture_registrar.h"
2322
#include "flutter/shell/platform/tizen/logger.h"
2423

2524
namespace flutter {

shell/platform/tizen/tizen_input_method_context.cc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "flutter/shell/platform/tizen/tizen_input_method_context.h"
5+
#include "tizen_input_method_context.h"
66

77
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
8-
#include "flutter/shell/platform/tizen/tizen_log.h"
8+
#include "flutter/shell/platform/tizen/logger.h"
99

1010
namespace {
1111

@@ -44,10 +44,8 @@ bool TextInputTypeToEcoreIMFInputPanelLayout(
4444
*panel_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_PASSWORD;
4545
} else if (text_input_type == "TextInputType.name" ||
4646
text_input_type == "TextInputType.address") {
47-
FT_LOGW(
48-
"Actual requested text input type is [%s], but select "
49-
"TextInputType.text as fallback type",
50-
text_input_type.c_str());
47+
FT_LOG(Warn) << "The requested input type " << text_input_type
48+
<< "is not supported.";
5149
*panel_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
5250
} else {
5351
return false;
@@ -138,6 +136,7 @@ void InputPanelStateChangedCallback(void* data,
138136

139137
self->OnInputPannelStateChanged(value);
140138
}
139+
141140
} // namespace
142141

143142
namespace flutter {
@@ -158,18 +157,17 @@ void TizenInputMethodContext::Init() {
158157

159158
const char* imf_id = ecore_imf_context_default_id_get();
160159
if (imf_id == nullptr) {
161-
// Try to get fallback id
160+
// Try to get a fallback ID.
162161
imf_id = GetEcoreImfContextAvailableID();
163162
}
164-
165163
if (imf_id == nullptr) {
166-
FT_LOGE("Failed to get imf context id");
164+
FT_LOG(Error) << "Failed to get an IMF context ID.";
167165
return;
168166
}
169167

170168
imf_context_ = ecore_imf_context_add(imf_id);
171169
if (imf_context_ == nullptr) {
172-
FT_LOGE("Failed to create Ecore_IMF_Context");
170+
FT_LOG(Error) << "Failed to create Ecore_IMF_Context.";
173171
return;
174172
}
175173

@@ -241,23 +239,24 @@ void TizenInputMethodContext::HideInputPannel() {
241239

242240
void TizenInputMethodContext::OnCommit(std::string str) {
243241
if (!on_commit_callback_) {
244-
FT_LOGW("Please, set OnCommitCallback");
242+
FT_LOG(Warn) << "SetOnCommitCallback() has not been called.";
245243
return;
246244
}
247245
on_commit_callback_(str);
248246
}
249247

250248
void TizenInputMethodContext::OnPreedit(std::string str, int cursor_pos) {
251249
if (!on_preedit_callback_) {
252-
FT_LOGW("Please, set OnInputPannelStateChangedCallback");
250+
FT_LOG(Warn) << "SetOnPreeditCallback() has not been called.";
253251
return;
254252
}
255253
on_preedit_callback_(str, cursor_pos);
256254
}
257255

258256
void TizenInputMethodContext::OnInputPannelStateChanged(int state) {
259257
if (!on_input_pannel_state_changed_callback_) {
260-
FT_LOGW("Please, set OnPreeditCallback");
258+
FT_LOG(Warn)
259+
<< "SetOnInputPannelStateChangedCallback() has not been called.";
261260
return;
262261
}
263262
on_input_pannel_state_changed_callback_(state);
@@ -310,4 +309,5 @@ void TizenInputMethodContext::SetInputPannelOptions() {
310309
ecore_imf_context_input_panel_language_set(
311310
imf_context_, ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC);
312311
}
312+
313313
} // namespace flutter

shell/platform/tizen/tizen_vsync_waiter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ bool TdmClient::CreateTdm() {
130130

131131
vblank_ = tdm_client_output_create_vblank(output_, &ret);
132132
if (ret != TDM_ERROR_NONE && vblank_ != NULL) {
133-
FT_LOG(Error) << "Failed to create a vblank object";
133+
FT_LOG(Error) << "Failed to create a vblank object.";
134134
return false;
135135
}
136136

0 commit comments

Comments
 (0)