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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 1614703003: Revert of Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/compositor/surface_utils.cc ('k') | extensions/browser/api/capture_web_contents_function.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index 62b1d6e9a92e1cfbbcc9399c09d9b76ce50a7bca..e8d384e723357b82d591899957195371b596131e 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -9,8 +9,6 @@
#include <vector>
#include "build/build_config.h"
-#include "cc/output/copy_output_request.h"
-#include "cc/output/copy_output_result.h"
#include "cc/surfaces/surface.h"
#include "cc/surfaces/surface_factory.h"
#include "cc/surfaces/surface_manager.h"
@@ -428,21 +426,11 @@
#endif // defined(OS_MACOSX)
void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface(
- const gfx::Rect& src_subrect,
- const gfx::Size& output_size,
+ const gfx::Rect& /* src_subrect */,
+ const gfx::Size& /* dst_size */,
const ReadbackRequestCallback& callback,
- const SkColorType preferred_color_type) {
- if (!surface_factory_ || surface_id_.is_null())
- callback.Run(SkBitmap(), READBACK_FAILED);
-
- scoped_ptr<cc::CopyOutputRequest> request =
- cc::CopyOutputRequest::CreateRequest(
- base::Bind(&CopyFromCompositingSurfaceHasResult, output_size,
- preferred_color_type, callback));
- if (!src_subrect.IsEmpty())
- request->set_area(src_subrect);
-
- surface_factory_->RequestCopyOfSurface(surface_id_, std::move(request));
+ const SkColorType /* preferred_color_type */) {
+ callback.Run(SkBitmap(), READBACK_FAILED);
}
void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame(
« no previous file with comments | « content/browser/compositor/surface_utils.cc ('k') | extensions/browser/api/capture_web_contents_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698