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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view.cc

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 years, 3 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: mojo/services/public/cpp/view_manager/lib/view.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view.cc b/mojo/services/public/cpp/view_manager/lib/view.cc
index d2f6f54efb84b7909a3bf1a7bd1aba622dc13218..797e8d519e32795910a15f6c4232aa95adbdbe1f 100644
--- a/mojo/services/public/cpp/view_manager/lib/view.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view.cc
@@ -291,6 +291,12 @@ View* View::GetChildById(Id id) {
return NULL;
}
+void View::SetSurfaceId(SurfaceIdPtr id) {
+ if (manager_) {
+ static_cast<ViewManagerClientImpl*>(manager_)->SetSurfaceId(id_, id.Pass());
+ }
+}
+
void View::SetContents(const SkBitmap& contents) {
if (manager_) {
static_cast<ViewManagerClientImpl*>(manager_)->SetViewContents(id_,

Powered by Google App Engine
This is Rietveld 408576698