Home | History | Annotate | Download | only in gpu
      1 
      2 /*
      3  * Copyright 2010 Google Inc.
      4  *
      5  * Use of this source code is governed by a BSD-style license that can be
      6  * found in the LICENSE file.
      7  */
      8 
      9 
     10 
     11 #include "GrTypes.h"
     12 
     13 #include <stdarg.h>
     14 #include <stdio.h>
     15 
     16 #include "SkTypes.h"
     17 
     18 void GrPrintf(const char format[], ...) {
     19     const size_t MAX_BUFFER_SIZE = 2048;
     20 
     21     char buffer[MAX_BUFFER_SIZE + 1];
     22     va_list args;
     23 
     24     va_start(args, format);
     25     vsnprintf(buffer, MAX_BUFFER_SIZE, format, args);
     26     va_end(args);
     27 
     28     // skia has already mapped this to do the "right thing"
     29     SkDebugf("%s", buffer);
     30 }
     31 
     32 
     33