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. 4 5#include "gpu/command_buffer/common/logging.h" 6 7#include <iostream> 8 9namespace gpu { 10 11std::ostream& Logger::stream() { 12 return std::cerr; 13} 14 15Logger::~Logger() { 16 if (!condition_) { 17 std::cerr << std::endl; 18 std::cerr.flush(); 19 if (level_ == FATAL) 20 assert(false); 21 } 22} 23 24} // namespace gpu 25