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

Unified Diff: cc/trees/compositor_mode.h

Issue 1464313007: cc: Introduce CompositorMode enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format fix Created 5 years, 1 month 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: cc/trees/compositor_mode.h
diff --git a/cc/base/resource_id.h b/cc/trees/compositor_mode.h
similarity index 55%
copy from cc/base/resource_id.h
copy to cc/trees/compositor_mode.h
index 84d00ad8e592b8c10310a8e31b26cf0f93e886b5..1453e451181e3ae4ac1d82bdba39e416f2921247 100644
--- a/cc/base/resource_id.h
+++ b/cc/trees/compositor_mode.h
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_BASE_RESOURCE_ID_H_
-#define CC_BASE_RESOURCE_ID_H_
-
-#include <stdint.h>
+#ifndef CC_TREES_COMPOSITOR_MODE_H_
+#define CC_TREES_COMPOSITOR_MODE_H_
namespace cc {
-using ResourceId = uint32_t;
+enum CompositorMode {
+ SingleThreaded,
+ Threaded,
vmpstr 2015/12/07 18:50:09 I'm kind of wondering if this should be MultiThrea
Khushal 2015/12/07 21:49:26 Yup. Wanted to keep it consistent with the LayerTr
+};
} // namespace cc
-#endif // CC_BASE_RESOURCE_ID_H_
+#endif // CC_TREES_COMPOSITOR_MODE_H_

Powered by Google App Engine
This is Rietveld 408576698