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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 263 |
264 void AttachLayers(); | 264 void AttachLayers(); |
265 void RemoveLayers(); | 265 void RemoveLayers(); |
266 | 266 |
267 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); | 267 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); |
268 | 268 |
269 // Called after async screenshot task completes. Scales and crops the result | 269 // Called after async screenshot task completes. Scales and crops the result |
270 // of the copy. | 270 // of the copy. |
271 static void PrepareTextureCopyOutputResult( | 271 static void PrepareTextureCopyOutputResult( |
272 const gfx::Size& dst_size_in_pixel, | 272 const gfx::Size& dst_size_in_pixel, |
| 273 const base::TimeTicks& start_time, |
273 const base::Callback<void(bool, const SkBitmap&)>& callback, | 274 const base::Callback<void(bool, const SkBitmap&)>& callback, |
274 scoped_ptr<cc::CopyOutputResult> result); | 275 scoped_ptr<cc::CopyOutputResult> result); |
275 static void PrepareBitmapCopyOutputResult( | 276 static void PrepareBitmapCopyOutputResult( |
276 const gfx::Size& dst_size_in_pixel, | 277 const gfx::Size& dst_size_in_pixel, |
| 278 const base::TimeTicks& start_time, |
277 const base::Callback<void(bool, const SkBitmap&)>& callback, | 279 const base::Callback<void(bool, const SkBitmap&)>& callback, |
278 scoped_ptr<cc::CopyOutputResult> result); | 280 scoped_ptr<cc::CopyOutputResult> result); |
279 | 281 |
280 // DevTools ScreenCast support for Android WebView. | 282 // DevTools ScreenCast support for Android WebView. |
281 void SynchronousCopyContents( | 283 void SynchronousCopyContents( |
282 const gfx::Rect& src_subrect_in_pixel, | 284 const gfx::Rect& src_subrect_in_pixel, |
283 const gfx::Size& dst_size_in_pixel, | 285 const gfx::Size& dst_size_in_pixel, |
284 const base::Callback<void(bool, const SkBitmap&)>& callback); | 286 const base::Callback<void(bool, const SkBitmap&)>& callback); |
285 | 287 |
286 // The model object. | 288 // The model object. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 const bool using_synchronous_compositor_; | 351 const bool using_synchronous_compositor_; |
350 | 352 |
351 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; | 353 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; |
352 | 354 |
353 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 355 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
354 }; | 356 }; |
355 | 357 |
356 } // namespace content | 358 } // namespace content |
357 | 359 |
358 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 360 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |