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 <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 void AttachLayers(); | 277 void AttachLayers(); |
278 void RemoveLayers(); | 278 void RemoveLayers(); |
279 | 279 |
280 // Called after async screenshot task completes. Scales and crops the result | 280 // Called after async screenshot task completes. Scales and crops the result |
281 // of the copy. | 281 // of the copy. |
282 static void PrepareTextureCopyOutputResult( | 282 static void PrepareTextureCopyOutputResult( |
283 const gfx::Size& dst_size_in_pixel, | 283 const gfx::Size& dst_size_in_pixel, |
284 SkColorType color_type, | 284 SkColorType color_type, |
285 const base::TimeTicks& start_time, | 285 const base::TimeTicks& start_time, |
286 ReadbackRequestCallback& callback, | 286 ReadbackRequestCallback& callback, |
| 287 gfx::NativeWindow nativeWindow, |
287 scoped_ptr<cc::CopyOutputResult> result); | 288 scoped_ptr<cc::CopyOutputResult> result); |
288 static void PrepareTextureCopyOutputResultForDelegatedReadback( | 289 static void PrepareTextureCopyOutputResultForDelegatedReadback( |
289 const gfx::Size& dst_size_in_pixel, | 290 const gfx::Size& dst_size_in_pixel, |
290 SkColorType color_type, | 291 SkColorType color_type, |
291 const base::TimeTicks& start_time, | 292 const base::TimeTicks& start_time, |
292 scoped_refptr<cc::Layer> readback_layer, | 293 scoped_refptr<cc::Layer> readback_layer, |
293 ReadbackRequestCallback& callback, | 294 ReadbackRequestCallback& callback, |
| 295 gfx::NativeWindow nativeWindow, |
294 scoped_ptr<cc::CopyOutputResult> result); | 296 scoped_ptr<cc::CopyOutputResult> result); |
295 | 297 |
296 // DevTools ScreenCast support for Android WebView. | 298 // DevTools ScreenCast support for Android WebView. |
297 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 299 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
298 const gfx::Size& dst_size_in_pixel, | 300 const gfx::Size& dst_size_in_pixel, |
299 ReadbackRequestCallback& callback, | 301 ReadbackRequestCallback& callback, |
300 const SkColorType color_type); | 302 const SkColorType color_type); |
301 | 303 |
302 // If we have locks on a frame during a ContentViewCore swap or a context | 304 // If we have locks on a frame during a ContentViewCore swap or a context |
303 // lost, the frame is no longer valid and we can safely release all the locks. | 305 // lost, the frame is no longer valid and we can safely release all the locks. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 gfx::Vector2dF last_scroll_offset_; | 416 gfx::Vector2dF last_scroll_offset_; |
415 | 417 |
416 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 418 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
417 | 419 |
418 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 420 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
419 }; | 421 }; |
420 | 422 |
421 } // namespace content | 423 } // namespace content |
422 | 424 |
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |