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

Unified Diff: src/ports/SkDebug_nacl.cpp

Issue 1411283005: Start making all .cpp files compile-able on all platforms. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: conditional on expat Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: src/ports/SkDebug_nacl.cpp
diff --git a/src/ports/SkDebug_nacl.cpp b/src/ports/SkDebug_nacl.cpp
deleted file mode 100644
index 6e35f0965ae656e46956eaf5b18ba08c91d28a9e..0000000000000000000000000000000000000000
--- a/src/ports/SkDebug_nacl.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-
-#include "SkTypes.h"
-
-static const size_t kBufferSize = 2048;
-
-#include <stdarg.h>
-#include <stdio.h>
-
-#include "ppapi/cpp/instance.h"
-#include "ppapi/cpp/var.h"
-
-extern pp::Instance* gPluginInstance;
-
-namespace {
-static const char* kLogPrefix = "SkDebugf:";
-}
-
-void SkDebugf(const char format[], ...) {
- if (gPluginInstance) {
- char buffer[kBufferSize + 1];
- va_list args;
- va_start(args, format);
- sprintf(buffer, kLogPrefix);
- vsnprintf(buffer + strlen(kLogPrefix), kBufferSize, format, args);
- va_end(args);
- pp::Var msg = pp::Var(buffer);
- gPluginInstance->PostMessage(msg);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698