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

Unified Diff: sky/compositor/display_delegate.cc

Issue 797063002: Make reftests work for sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 6 years 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 | « sky/compositor/display_delegate.h ('k') | sky/compositor/display_delegate_bitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/display_delegate.cc
diff --git a/sky/compositor/display_delegate.cc b/sky/compositor/display_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c868558424aca3e1a5305ee3515ce542bc3d8d98
--- /dev/null
+++ b/sky/compositor/display_delegate.cc
@@ -0,0 +1,24 @@
+// Copyright 2014 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 "sky/compositor/display_delegate.h"
+
+namespace sky {
+
+static CreateDisplayDelegate createDisplayDelegateFunction = 0;
+
+void DisplayDelegate::setDisplayDelegateCreateFunction(CreateDisplayDelegate createFunction)
+{
+ DCHECK(createFunction);
+ DCHECK(!createDisplayDelegateFunction);
+ createDisplayDelegateFunction = createFunction;
+}
+
+DisplayDelegate* DisplayDelegate::create(LayerClient* client)
+{
+ DCHECK(createDisplayDelegateFunction);
+ return createDisplayDelegateFunction(client);
+}
+
+} // namespace sky
« no previous file with comments | « sky/compositor/display_delegate.h ('k') | sky/compositor/display_delegate_bitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698