16e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
26e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
36e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// found in the LICENSE file.
46e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
56e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#include "ui/compositor/compositor_observer.h"
66e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
76e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#include "base/logging.h"
86e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
96e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)namespace ui {
106e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
116e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#if defined(OS_MACOSX)
126e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Debugging instrumentation for crbug.com/401630.
136e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// TODO(ccameron): remove this.
146e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)CompositorObserver::CompositorObserver() : observing_count_(0) {}
156e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#else
166e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)CompositorObserver::CompositorObserver() {}
176e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#endif
186e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
196e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)CompositorObserver::~CompositorObserver() {
206e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#if defined(OS_MACOSX)
216e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)  // Debugging instrumentation for crbug.com/401630.
226e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)  // TODO(ccameron): remove this.
236e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)  CHECK_EQ(observing_count_, 0);
246e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#endif
256e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)}
266e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
276e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)}
286e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
29