diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-03-16 15:35:20 -0400 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-03-16 15:35:20 -0400 |
commit | a03c343b47938fcb1b562741ff05252b01a4e39d (patch) | |
tree | 8f4ea4f27285a6b3e1838685c1a7116d006ce1ee /skia/ext/google_logging.cc | |
parent | 30410cecd0f2653556094a20c2564170be127127 (diff) | |
download | pdfium-a03c343b47938fcb1b562741ff05252b01a4e39d.tar.xz |
Enable building pdf_use_skia in the standalone build.
This CL adds the necessary pieces so you can add pdf_use_skia=1 to GYP_DEFINES
and do a standalone build.
R=caryclark@google.com
Review URL: https://codereview.chromium.org/1812563002 .
Diffstat (limited to 'skia/ext/google_logging.cc')
-rw-r--r-- | skia/ext/google_logging.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/skia/ext/google_logging.cc b/skia/ext/google_logging.cc new file mode 100644 index 0000000000..c0ddd99c0e --- /dev/null +++ b/skia/ext/google_logging.cc @@ -0,0 +1,24 @@ +// 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 <stdio.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); + + fprintf(stderr, "%s:%d ", file, line); + vfprintf(stderr, format, ap); + va_end(ap); +} |