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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // Called after async screenshot task completes. Scales and crops the result | 273 // Called after async screenshot task completes. Scales and crops the result |
274 // of the copy. | 274 // of the copy. |
275 static void PrepareTextureCopyOutputResult( | 275 static void PrepareTextureCopyOutputResult( |
276 const gfx::Size& dst_size_in_pixel, | 276 const gfx::Size& dst_size_in_pixel, |
277 const SkBitmap::Config config, | 277 const SkBitmap::Config config, |
278 const base::TimeTicks& start_time, | 278 const base::TimeTicks& start_time, |
279 const base::Callback<void(bool, const SkBitmap&)>& callback, | 279 const base::Callback<void(bool, const SkBitmap&)>& callback, |
280 scoped_ptr<cc::CopyOutputResult> result); | 280 scoped_ptr<cc::CopyOutputResult> result); |
281 static void PrepareBitmapCopyOutputResult( | 281 static void PrepareBitmapCopyOutputResult( |
282 const gfx::Size& dst_size_in_pixel, | 282 const gfx::Size& dst_size_in_pixel, |
| 283 const SkBitmap::Config config, |
283 const base::TimeTicks& start_time, | 284 const base::TimeTicks& start_time, |
284 const base::Callback<void(bool, const SkBitmap&)>& callback, | 285 const base::Callback<void(bool, const SkBitmap&)>& callback, |
285 scoped_ptr<cc::CopyOutputResult> result); | 286 scoped_ptr<cc::CopyOutputResult> result); |
286 | 287 |
287 // DevTools ScreenCast support for Android WebView. | 288 // DevTools ScreenCast support for Android WebView. |
288 void SynchronousCopyContents( | 289 void SynchronousCopyContents( |
289 const gfx::Rect& src_subrect_in_pixel, | 290 const gfx::Rect& src_subrect_in_pixel, |
290 const gfx::Size& dst_size_in_pixel, | 291 const gfx::Size& dst_size_in_pixel, |
291 const base::Callback<void(bool, const SkBitmap&)>& callback); | 292 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 293 const SkBitmap::Config config); |
292 | 294 |
293 // The model object. | 295 // The model object. |
294 RenderWidgetHostImpl* host_; | 296 RenderWidgetHostImpl* host_; |
295 | 297 |
296 // Used to track whether this render widget needs a BeginFrame. | 298 // Used to track whether this render widget needs a BeginFrame. |
297 bool needs_begin_frame_; | 299 bool needs_begin_frame_; |
298 | 300 |
299 // Whether or not this widget is potentially attached to the view hierarchy. | 301 // Whether or not this widget is potentially attached to the view hierarchy. |
300 // This view may not actually be attached if this is true, but it should be | 302 // This view may not actually be attached if this is true, but it should be |
301 // treated as such, because as soon as a ContentViewCore is set the layer | 303 // treated as such, because as soon as a ContentViewCore is set the layer |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 const bool using_synchronous_compositor_; | 358 const bool using_synchronous_compositor_; |
357 | 359 |
358 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; | 360 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; |
359 | 361 |
360 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 362 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
361 }; | 363 }; |
362 | 364 |
363 } // namespace content | 365 } // namespace content |
364 | 366 |
365 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 367 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |