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