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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 1412173003: cast: support cursor rendering for tab capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm>
8 #include <vector>
9
sadrul 2015/10/29 16:26:36 ditto
7 #include "cc/surfaces/surface.h" 10 #include "cc/surfaces/surface.h"
8 #include "cc/surfaces/surface_factory.h" 11 #include "cc/surfaces/surface_factory.h"
9 #include "cc/surfaces/surface_manager.h" 12 #include "cc/surfaces/surface_manager.h"
10 #include "cc/surfaces/surface_sequence.h" 13 #include "cc/surfaces/surface_sequence.h"
11 #include "content/browser/accessibility/browser_accessibility_manager.h" 14 #include "content/browser/accessibility/browser_accessibility_manager.h"
12 #include "content/browser/browser_plugin/browser_plugin_guest.h" 15 #include "content/browser/browser_plugin/browser_plugin_guest.h"
13 #include "content/browser/compositor/surface_utils.h" 16 #include "content/browser/compositor/surface_utils.h"
14 #include "content/browser/frame_host/cross_process_frame_connector.h" 17 #include "content/browser/frame_host/cross_process_frame_connector.h"
15 #include "content/browser/gpu/compositor_util.h" 18 #include "content/browser/gpu/compositor_util.h"
16 #include "content/browser/renderer_host/render_view_host_impl.h" 19 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 411
409 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( 412 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface(
410 const gfx::Rect& /* src_subrect */, 413 const gfx::Rect& /* src_subrect */,
411 const gfx::Size& /* dst_size */, 414 const gfx::Size& /* dst_size */,
412 const ReadbackRequestCallback& callback, 415 const ReadbackRequestCallback& callback,
413 const SkColorType /* preferred_color_type */) { 416 const SkColorType /* preferred_color_type */) {
414 callback.Run(SkBitmap(), READBACK_FAILED); 417 callback.Run(SkBitmap(), READBACK_FAILED);
415 } 418 }
416 419
417 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame( 420 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame(
418 const gfx::Rect& src_subrect, 421 const gfx::Rect& src_subrect,
419 const scoped_refptr<media::VideoFrame>& target, 422 const scoped_refptr<media::VideoFrame>& target,
420 const base::Callback<void(bool)>& callback) { 423 const base::Callback<void(const gfx::Rect&, bool)>& callback) {
421 NOTIMPLEMENTED(); 424 NOTIMPLEMENTED();
422 callback.Run(false); 425 callback.Run(gfx::Rect(), false);
423 } 426 }
424 427
425 bool RenderWidgetHostViewChildFrame::CanCopyToVideoFrame() const { 428 bool RenderWidgetHostViewChildFrame::CanCopyToVideoFrame() const {
426 return false; 429 return false;
427 } 430 }
428 431
429 bool RenderWidgetHostViewChildFrame::HasAcceleratedSurface( 432 bool RenderWidgetHostViewChildFrame::HasAcceleratedSurface(
430 const gfx::Size& desired_size) { 433 const gfx::Size& desired_size) {
431 return false; 434 return false;
432 } 435 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 BrowserAccessibilityManager::GetEmptyDocument(), delegate); 471 BrowserAccessibilityManager::GetEmptyDocument(), delegate);
469 } 472 }
470 473
471 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { 474 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() {
472 if (surface_factory_ && !surface_id_.is_null()) 475 if (surface_factory_ && !surface_id_.is_null())
473 surface_factory_->Destroy(surface_id_); 476 surface_factory_->Destroy(surface_id_);
474 surface_id_ = cc::SurfaceId(); 477 surface_id_ = cc::SurfaceId();
475 } 478 }
476 479
477 } // namespace content 480 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698