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

Unified Diff: services/gfx/compositor/scene_state.cc

Issue 1873573003: Mozart: Ensure time always runs forward. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: fix build error on Android Created 4 years, 8 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
« no previous file with comments | « services/gfx/compositor/scene_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/scene_state.cc
diff --git a/services/gfx/compositor/scene_state.cc b/services/gfx/compositor/scene_state.cc
index 319d4ed4700b822935727e5820525d2a6f1d9621..a5dab8272d4a95ad4ffdfe8d29867dbf86c7be03 100644
--- a/services/gfx/compositor/scene_state.cc
+++ b/services/gfx/compositor/scene_state.cc
@@ -10,7 +10,9 @@ SceneState::SceneState(mojo::gfx::composition::SceneTokenPtr scene_token,
const std::string& label)
: scene_token_(scene_token.Pass()),
scene_def_(SceneLabel(scene_token_->value, label)),
- weak_factory_(this) {}
+ weak_factory_(this) {
+ DCHECK(scene_token_);
+}
SceneState::~SceneState() {
// The scene implementation and all of its bindings must be destroyed
« no previous file with comments | « services/gfx/compositor/scene_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698