Telemetry: adding memory tests & solving problems on the go.
[chromium-blink-merge.git] / gpu / command_buffer / common / logging.cc
blob4bc35103008ec4ac71adc66d5b14635639e8922a
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "gpu/command_buffer/common/logging.h"
7 #include <iostream>
9 namespace gpu {
11 std::ostream& Logger::stream() {
12 return std::cerr;
15 Logger::~Logger() {
16 if (!condition_) {
17 std::cerr << std::endl;
18 std::cerr.flush();
19 if (level_ == FATAL)
20 assert(false);
24 } // namespace gpu