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

Side by Side Diff: skia/ext/google_logging.cc

Issue 1813633002: Fix pdf_use_skia=1 on mac. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file provides integration with Google-style "base/logging.h" assertions 5 // This file provides integration with Google-style "base/logging.h" assertions
6 // for Skia SkASSERT. If you don't want this, you can link with another file 6 // for Skia SkASSERT. If you don't want this, you can link with another file
7 // that provides integration with the logging of your choice. 7 // that provides integration with the logging of your choice.
8 8
9 #include <stdarg.h>
9 #include <stdio.h> 10 #include <stdio.h>
10 11
11 #include "third_party/skia/include/core/SkTypes.h" 12 #include "third_party/skia/include/core/SkTypes.h"
12 13
13 void SkDebugf_FileLine(const char* file, 14 void SkDebugf_FileLine(const char* file,
14 int line, 15 int line,
15 bool fatal, 16 bool fatal,
16 const char* format, 17 const char* format,
17 ...) { 18 ...) {
18 va_list ap; 19 va_list ap;
19 va_start(ap, format); 20 va_start(ap, format);
20 21
21 fprintf(stderr, "%s:%d ", file, line); 22 fprintf(stderr, "%s:%d ", file, line);
22 vfprintf(stderr, format, ap); 23 vfprintf(stderr, format, ap);
23 va_end(ap); 24 va_end(ap);
24 } 25 }
OLDNEW
« 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