virtual InputEventAckState FilterInputEvent(
const blink::WebInputEvent& input_event) OVERRIDE;
virtual void OnSetNeedsFlushInput() OVERRIDE;
- virtual void GestureEventAck(int gesture_event_type,
+ virtual void GestureEventAck(const blink::WebGestureEvent& event,
InputEventAckState ack_result) OVERRIDE;
virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE;
virtual bool LockMouse() OVERRIDE;
virtual void UnlockMouse() OVERRIDE;
- virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE;
virtual void OnSwapCompositorFrame(
uint32 output_surface_id,
scoped_ptr<cc::CompositorFrame> frame) OVERRIDE;
void WasResized();
- blink::WebGLId GetScaledContentTexture(float scale, gfx::Size* out_size);
+ void GetScaledContentBitmap(
+ float scale,
+ gfx::Size* out_size,
+ const base::Callback<void(bool, const SkBitmap&)>& result_callback);
bool PopulateBitmapWithContents(jobject jbitmap);
bool HasValidFrame() const;
void SwapDelegatedFrame(uint32 output_surface_id,
scoped_ptr<cc::DelegatedFrameData> frame_data);
void SendDelegatedFrameAck(uint32 output_surface_id);
+ void SendReturnedDelegatedResources(uint32 output_surface_id);
void UpdateContentViewCoreFrameMetadata(
const cc::CompositorFrameMetadata& frame_metadata);
scoped_ptr<cc::CopyOutputResult> result);
static void PrepareBitmapCopyOutputResult(
const gfx::Size& dst_size_in_pixel,
+ const SkBitmap::Config config,
const base::TimeTicks& start_time,
const base::Callback<void(bool, const SkBitmap&)>& callback,
scoped_ptr<cc::CopyOutputResult> result);
void SynchronousCopyContents(
const gfx::Rect& src_subrect_in_pixel,
const gfx::Size& dst_size_in_pixel,
- const base::Callback<void(bool, const SkBitmap&)>& callback);
+ const base::Callback<void(bool, const SkBitmap&)>& callback,
+ const SkBitmap::Config config);
// The model object.
RenderWidgetHostImpl* host_;
// Used to track whether this render widget needs a BeginFrame.
bool needs_begin_frame_;
- // Whether or not this widget is potentially attached to the view hierarchy.
- // This view may not actually be attached if this is true, but it should be
- // treated as such, because as soon as a ContentViewCore is set the layer
- // will be attached automatically.
- bool are_layers_attached_;
+ bool is_showing_;
// ContentViewCoreImpl is our interface to the view system.
ContentViewCoreImpl* content_view_core_;
scoped_ptr<DelegatedFrameEvictor> frame_evictor_;
+ bool using_delegated_renderer_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
};