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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 void UpdateBackgroundColor(SkColor color); | 285 void UpdateBackgroundColor(SkColor color); |
286 | 286 |
287 // Called after async screenshot task completes. Scales and crops the result | 287 // Called after async screenshot task completes. Scales and crops the result |
288 // of the copy. | 288 // of the copy. |
289 static void PrepareTextureCopyOutputResult( | 289 static void PrepareTextureCopyOutputResult( |
290 const gfx::Size& dst_size_in_pixel, | 290 const gfx::Size& dst_size_in_pixel, |
291 SkColorType color_type, | 291 SkColorType color_type, |
292 const base::TimeTicks& start_time, | 292 const base::TimeTicks& start_time, |
293 const ReadbackRequestCallback& callback, | 293 const ReadbackRequestCallback& callback, |
294 scoped_ptr<cc::CopyOutputResult> result); | 294 scoped_ptr<cc::CopyOutputResult> result); |
295 static void PrepareTextureCopyOutputResultForDelegatedReadback( | |
296 const gfx::Size& dst_size_in_pixel, | |
297 SkColorType color_type, | |
298 const base::TimeTicks& start_time, | |
299 scoped_refptr<cc::Layer> readback_layer, | |
300 const ReadbackRequestCallback& callback, | |
301 scoped_ptr<cc::CopyOutputResult> result); | |
302 | 295 |
303 // DevTools ScreenCast support for Android WebView. | 296 // DevTools ScreenCast support for Android WebView. |
304 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 297 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
305 const gfx::Size& dst_size_in_pixel, | 298 const gfx::Size& dst_size_in_pixel, |
306 const ReadbackRequestCallback& callback, | 299 const ReadbackRequestCallback& callback, |
307 const SkColorType color_type); | 300 const SkColorType color_type); |
308 | 301 |
309 // If we have locks on a frame during a ContentViewCore swap or a context | 302 // If we have locks on a frame during a ContentViewCore swap or a context |
310 // lost, the frame is no longer valid and we can safely release all the locks. | 303 // lost, the frame is no longer valid and we can safely release all the locks. |
311 // Use this method to release all the locks. | 304 // Use this method to release all the locks. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 gfx::Vector2dF last_scroll_offset_; | 409 gfx::Vector2dF last_scroll_offset_; |
417 | 410 |
418 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 411 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
419 | 412 |
420 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 413 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
421 }; | 414 }; |
422 | 415 |
423 } // namespace content | 416 } // namespace content |
424 | 417 |
425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |