OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, | 255 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, |
256 bool is_transparent); | 256 bool is_transparent); |
257 | 257 |
258 void ShowInternal(); | 258 void ShowInternal(); |
259 void HideInternal(); | 259 void HideInternal(); |
260 void AttachLayers(); | 260 void AttachLayers(); |
261 void RemoveLayers(); | 261 void RemoveLayers(); |
262 | 262 |
263 void UpdateBackgroundColor(SkColor color); | 263 void UpdateBackgroundColor(SkColor color); |
264 | 264 |
265 // Called after async screenshot task completes. Scales and crops the result | |
266 // of the copy. | |
267 static void PrepareTextureCopyOutputResult( | |
268 const gfx::Size& dst_size_in_pixel, | |
269 SkColorType color_type, | |
270 const base::TimeTicks& start_time, | |
271 const ReadbackRequestCallback& callback, | |
272 std::unique_ptr<cc::CopyOutputResult> result); | |
273 | |
274 // DevTools ScreenCast support for Android WebView. | 265 // DevTools ScreenCast support for Android WebView. |
275 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 266 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
276 const gfx::Size& dst_size_in_pixel, | 267 const gfx::Size& dst_size_in_pixel, |
277 const ReadbackRequestCallback& callback, | 268 const ReadbackRequestCallback& callback, |
278 const SkColorType color_type); | 269 const SkColorType color_type); |
279 | 270 |
280 // If we have locks on a frame during a ContentViewCore swap or a context | 271 // If we have locks on a frame during a ContentViewCore swap or a context |
281 // lost, the frame is no longer valid and we can safely release all the locks. | 272 // lost, the frame is no longer valid and we can safely release all the locks. |
282 // Use this method to release all the locks. | 273 // Use this method to release all the locks. |
283 void ReleaseLocksOnSurface(); | 274 void ReleaseLocksOnSurface(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 gfx::Vector2dF last_scroll_offset_; | 375 gfx::Vector2dF last_scroll_offset_; |
385 | 376 |
386 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 377 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
387 | 378 |
388 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 379 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
389 }; | 380 }; |
390 | 381 |
391 } // namespace content | 382 } // namespace content |
392 | 383 |
393 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 384 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |