was_scrolled_(false),
web_contents_(web_contents),
single_tap_performed_(false),
+ compositor_(NULL),
root_layer_(new ui::Layer(ui::LAYER_SOLID_COLOR)),
- delegated_frame_host_(new DelegatedFrameHost(this)) {
+ delegated_frame_host_(new DelegatedFrameHost(this)),
+ context_factory_(NULL) {
SetDoubleTapSupportEnabled(touch_events_enabled_);
content_image_elm_host_ = NULL;
content_image_ = NULL;
parent_view_ = NULL;
+
+ if (compositor_)
+ delete compositor_;
+
+ if (context_factory_)
+ delete context_factory_;
}
gfx::Point RenderWidgetHostViewEfl::ConvertPointInViewPix(gfx::Point point) {
evas_gl_initialized_ = true;
- context_factory_.reset(new ui::ContextFactoryEfl(this, host_->surface_id()));
+ context_factory_ = new ui::ContextFactoryEfl(this, host_->surface_id());
bool gpu_thread_disabled = false;
gpu_thread_disabled = GpuDataManagerImpl::GetInstance()->GpuThreadDisabled();
#endif
- compositor_.reset(new ui::Compositor(GetNativeViewId(),
- context_factory_.get(),
+ compositor_ = new ui::Compositor(GetNativeViewId(),
+ context_factory_,
base::ThreadTaskRunnerHandle::Get(),
- gpu_thread_disabled));
+ gpu_thread_disabled);
#if defined(TIZEN_DISABLE_GPU_THREAD)
if (gpu_thread_disabled) {
scoped_ptr<bool> restore_showing_large_handle_on_gesture_end_;
IDMap<ScreenshotCapturedCallback, IDMapOwnPointer> screen_capture_cb_map_;
- scoped_ptr<ui::Compositor> compositor_;
+ ui::Compositor* compositor_;
scoped_ptr<ui::Layer> root_layer_;
scoped_ptr<DelegatedFrameHost> delegated_frame_host_;
- scoped_ptr<ui::ContextFactory> context_factory_;
+ ui::ContextFactory* context_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewEfl);
};