Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2241383002: Android: Attach hidden layer for CopyFromCompositingSurface() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 void HideInternal(); 276 void HideInternal();
277 void AttachLayers(); 277 void AttachLayers();
278 void RemoveLayers(); 278 void RemoveLayers();
279 279
280 void UpdateBackgroundColor(SkColor color); 280 void UpdateBackgroundColor(SkColor color);
281 281
282 // Called after async screenshot task completes. Scales and crops the result 282 // Called after async screenshot task completes. Scales and crops the result
283 // of the copy. 283 // of the copy.
284 static void PrepareTextureCopyOutputResult( 284 static void PrepareTextureCopyOutputResult(
285 base::WeakPtr<RenderWidgetHostViewAndroid> rwhva, 285 base::WeakPtr<RenderWidgetHostViewAndroid> rwhva,
286 scoped_refptr<cc::Layer> readback_layer,
286 const gfx::Size& dst_size_in_pixel, 287 const gfx::Size& dst_size_in_pixel,
287 SkColorType color_type, 288 SkColorType color_type,
288 const base::TimeTicks& start_time, 289 const base::TimeTicks& start_time,
289 const ReadbackRequestCallback& callback, 290 const ReadbackRequestCallback& callback,
290 std::unique_ptr<cc::CopyOutputResult> result); 291 std::unique_ptr<cc::CopyOutputResult> result);
291 292
292 // DevTools ScreenCast support for Android WebView. 293 // DevTools ScreenCast support for Android WebView.
293 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, 294 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel,
294 const gfx::Size& dst_size_in_pixel, 295 const gfx::Size& dst_size_in_pixel,
295 const ReadbackRequestCallback& callback, 296 const ReadbackRequestCallback& callback,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 gfx::Vector2dF last_scroll_offset_; 404 gfx::Vector2dF last_scroll_offset_;
404 405
405 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 406 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
406 407
407 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 408 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
408 }; 409 };
409 410
410 } // namespace content 411 } // namespace content
411 412
412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 413 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698