Clone of chromium aad1ce808763f59c7a3753e08f1500a104ecc6fd refs/remotes/origin/HEAD
diff --git a/skia/ext/google_logging.cc b/skia/ext/google_logging.cc
new file mode 100644
index 0000000..673e23a
--- /dev/null
+++ b/skia/ext/google_logging.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file provides integration with Google-style "base/logging.h" assertions
+// for Skia SkASSERT. If you don't want this, you can link with another file
+// that provides integration with the logging of your choice.
+
+#include "base/logging.h"
+#include "base/strings/stringprintf.h"
+#include "third_party/skia/include/core/SkTypes.h"
+
+void SkDebugf_FileLine(const char* file, int line, bool fatal,
+ const char* format, ...) {
+ va_list ap;
+ va_start(ap, format);
+
+ std::string msg;
+ base::StringAppendV(&msg, format, ap);
+ va_end(ap);
+
+ logging::LogMessage(file, line,
+ fatal ? logging::LOG_FATAL : logging::LOG_INFO).stream()
+ << msg;
+}