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

Unified Diff: content/renderer/child_frame_compositing_helper.cc

Issue 690263003: <webview>: Remove broken captureVisibleRegion code until feature is properly supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
Index: content/renderer/child_frame_compositing_helper.cc
diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
index 8e6e6ad0e8e68ba70447b4f4b834abcef6a6bb2e..841cfadf70438d4a33f86feb87484ea4c0a66480 100644
--- a/content/renderer/child_frame_compositing_helper.cc
+++ b/content/renderer/child_frame_compositing_helper.cc
@@ -112,21 +112,6 @@ void ChildFrameCompositingHelper::SendReclaimCompositorResourcesToBrowser(
}
}
-void ChildFrameCompositingHelper::CopyFromCompositingSurface(
- int request_id,
- gfx::Rect source_rect,
- gfx::Size dest_size) {
- CHECK(background_layer_.get());
- scoped_ptr<cc::CopyOutputRequest> request =
- cc::CopyOutputRequest::CreateBitmapRequest(base::Bind(
- &ChildFrameCompositingHelper::CopyFromCompositingSurfaceHasResult,
- this,
- request_id,
- dest_size));
- request->set_area(source_rect);
- background_layer_->RequestCopyOfOutput(request.Pass());
-}
-
void ChildFrameCompositingHelper::DidCommitCompositorFrame() {
if (!resource_collection_.get() || !ack_pending_)
return;
@@ -297,27 +282,4 @@ void ChildFrameCompositingHelper::SetContentsOpaque(bool opaque) {
delegated_layer_->SetContentsOpaque(opaque_);
}
-void ChildFrameCompositingHelper::CopyFromCompositingSurfaceHasResult(
- int request_id,
- gfx::Size dest_size,
- scoped_ptr<cc::CopyOutputResult> result) {
- scoped_ptr<SkBitmap> bitmap;
- if (result && result->HasBitmap() && !result->size().IsEmpty())
- bitmap = result->TakeBitmap();
-
- SkBitmap resized_bitmap;
- if (bitmap) {
- resized_bitmap =
- skia::ImageOperations::Resize(*bitmap,
- skia::ImageOperations::RESIZE_BEST,
- dest_size.width(),
- dest_size.height());
- }
- if (GetBrowserPluginManager()) {
- GetBrowserPluginManager()->Send(
- new BrowserPluginHostMsg_CopyFromCompositingSurfaceAck(
- host_routing_id_, GetInstanceID(), request_id, resized_bitmap));
- }
-}
-
} // namespace content
« no previous file with comments | « content/renderer/child_frame_compositing_helper.h ('k') | extensions/browser/api/web_view/web_view_internal_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698