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

Unified Diff: remoting/client/display/fake_canvas.cc

Issue 2591363002: Adding drawable to CRD andorid and iOS gl rendering pipeline. (Closed)
Patch Set: Woops, wrong unique_ptr. Typo. Created 3 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
Index: remoting/client/display/fake_canvas.cc
diff --git a/remoting/client/display/fake_canvas.cc b/remoting/client/display/fake_canvas.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d4c4b49801b7df881154119e1cdb8ca7044d99ed
--- /dev/null
+++ b/remoting/client/display/fake_canvas.cc
@@ -0,0 +1,37 @@
+// Copyright 2016 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 "remoting/client/display/fake_canvas.h"
+
+namespace remoting {
+
+FakeCanvas::FakeCanvas() : weak_factory_(this) {}
+
+FakeCanvas::~FakeCanvas() {}
+
+void FakeCanvas::Clear() {}
+
+void FakeCanvas::SetTransformationMatrix(const std::array<float, 9>& matrix) {}
+
+void FakeCanvas::SetViewSize(int width, int height) {}
+
+void FakeCanvas::DrawTexture(int texture_id,
+ unsigned int texture_handle,
+ unsigned int vertex_buffer,
+ float alpha_multiplier) {}
+
+int FakeCanvas::GetVersion() const {
+ return 0;
+}
+
+int FakeCanvas::GetMaxTextureSize() const {
+ return 0;
+}
+
+base::WeakPtr<Canvas> FakeCanvas::GetWeakPtr() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ return weak_factory_.GetWeakPtr();
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698