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

Unified Diff: content/browser/media/capture/cursor_renderer_dummy.cc

Issue 1412173003: cast: support cursor rendering for tab capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing cursor renderer files in repo Created 5 years, 2 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
Index: content/browser/media/capture/cursor_renderer_dummy.cc
diff --git a/content/browser/media/capture/cursor_renderer_dummy.cc b/content/browser/media/capture/cursor_renderer_dummy.cc
new file mode 100644
index 0000000000000000000000000000000000000000..40c3c6b6618d9b122cc240fa880cd998ba1ac923
--- /dev/null
+++ b/content/browser/media/capture/cursor_renderer_dummy.cc
@@ -0,0 +1,33 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/media/capture/cursor_renderer_dummy.h"
+
+namespace content {
+
+// TODO(isheriff): When we do have a MAC implementation, rename dummy
miu 2015/10/23 01:55:12 Oh. If this is why you wrote this class, you shou
Irfan 2015/10/26 23:10:31 Done.
+// appropriately
+CursorRendererDummy::CursorRendererDummy(gfx::NativeView window) :
+ weak_factory_(this) {
+}
+
+CursorRendererDummy::~CursorRendererDummy() {
+}
+
+void CursorRendererDummy::Clear() {
+}
+
+bool CursorRendererDummy::Update(const gfx::Rect& region_in_frame) {
+ return false;
+}
+
+void CursorRendererDummy::RenderOnVideoFrame(
+ const scoped_refptr<media::VideoFrame>& target) const {
+}
+
+base::WeakPtr<CursorRenderer> CursorRendererDummy::GetWeakPtr() {
+ return weak_factory_.GetWeakPtr();
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698