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

Unified Diff: gpu/tools/compositor_model_bench/compositor_model_bench.cc

Issue 791353002: Fix WeakPtrFactory member ordering in gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/tools/compositor_model_bench/compositor_model_bench.cc
diff --git a/gpu/tools/compositor_model_bench/compositor_model_bench.cc b/gpu/tools/compositor_model_bench/compositor_model_bench.cc
index 5108a8716d109d2f330ee6f5430940ad461f19f1..375bce2e2f4d202a9d894578f4962d5379bb0d96 100644
--- a/gpu/tools/compositor_model_bench/compositor_model_bench.cc
+++ b/gpu/tools/compositor_model_bench/compositor_model_bench.cc
@@ -61,12 +61,12 @@ class Simulator {
: current_sim_(NULL),
output_path_(output_path),
seconds_per_test_(seconds_per_test),
- weak_factory_(this),
display_(NULL),
window_(0),
gl_context_(NULL),
window_width_(WINDOW_WIDTH),
- window_height_(WINDOW_HEIGHT) {
+ window_height_(WINDOW_HEIGHT),
+ weak_factory_(this) {
}
~Simulator() {
@@ -344,12 +344,12 @@ class Simulator {
// Amount of time to run each simulation
int seconds_per_test_;
// GUI data
- base::WeakPtrFactory<Simulator> weak_factory_;
Display* display_;
Window window_;
GLXContext gl_context_;
int window_width_;
int window_height_;
+ base::WeakPtrFactory<Simulator> weak_factory_;
};
int main(int argc, char* argv[]) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698