aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-20 20:00:24 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-20 20:00:24 +0000
commit933e65d914eb86b1fbbf8ea9cf1da58ac7c42500 (patch)
tree025ed972e8b352631884e052a5f4c8fc8e115733 /src
parent7225506621e7102e8c3c5b4c9f29ac20851bc25a (diff)
replace old SK_TRACE_EVENT macros with new TRACE_EVENT ones, and then remove them entirely!
BUG=skia:353 R=tomhudson@google.com, epoger@google.com, reed@google.com, egdaniel@google.com, bsalomon@google.com Author: humper@google.com Review URL: https://codereview.chromium.org/196133033 git-svn-id: http://skia.googlecode.com/svn/trunk@13884 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrAAConvexPathRenderer.cpp2
-rw-r--r--src/gpu/GrContext.cpp13
-rw-r--r--src/gpu/GrDefaultPathRenderer.cpp4
-rw-r--r--src/gpu/gl/GrGLShaderBuilder.cpp4
-rw-r--r--src/utils/SkDebugTrace.h24
5 files changed, 4 insertions, 43 deletions
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp
index a8af559991..3e1af80485 100644
--- a/src/gpu/GrAAConvexPathRenderer.cpp
+++ b/src/gpu/GrAAConvexPathRenderer.cpp
@@ -16,7 +16,7 @@
#include "GrTBackendEffectFactory.h"
#include "SkString.h"
#include "SkStrokeRec.h"
-#include "SkTrace.h"
+#include "SkTraceEvent.h"
#include "gl/GrGLEffect.h"
#include "gl/GrGLSL.h"
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index c480a1f718..c016d062ab 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -30,7 +30,7 @@
#include "SkStrokeRec.h"
#include "SkTLazy.h"
#include "SkTLS.h"
-#include "SkTrace.h"
+#include "SkTraceEvent.h"
// It can be useful to set this to false to test whether a bug is caused by using the
// InOrderDrawBuffer, to compare performance of using/not using InOrderDrawBuffer, or to make
@@ -375,8 +375,6 @@ GrTexture* GrContext::createTexture(const GrTextureParams* params,
void* srcData,
size_t rowBytes,
GrResourceKey* cacheKey) {
- SK_TRACE_EVENT0("GrContext::createTexture");
-
GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
GrTexture* texture;
@@ -768,8 +766,6 @@ void GrContext::drawRect(const GrPaint& paint,
const SkRect& rect,
const SkStrokeRec* stroke,
const SkMatrix* matrix) {
- SK_TRACE_EVENT0("GrContext::drawRect");
-
AutoRestoreEffects are;
AutoCheckFlush acf(this);
GrDrawTarget* target = this->prepareToDraw(&paint, BUFFERED_DRAW, &are, &acf);
@@ -890,7 +886,6 @@ void GrContext::drawRectToRect(const GrPaint& paint,
const SkRect& localRect,
const SkMatrix* dstMatrix,
const SkMatrix* localMatrix) {
- SK_TRACE_EVENT0("GrContext::drawRectToRect");
AutoRestoreEffects are;
AutoCheckFlush acf(this);
GrDrawTarget* target = this->prepareToDraw(&paint, BUFFERED_DRAW, &are, &acf);
@@ -944,8 +939,6 @@ void GrContext::drawVertices(const GrPaint& paint,
const GrColor colors[],
const uint16_t indices[],
int indexCount) {
- SK_TRACE_EVENT0("GrContext::drawVertices");
-
AutoRestoreEffects are;
AutoCheckFlush acf(this);
GrDrawTarget::AutoReleaseGeometry geo; // must be inside AutoCheckFlush scope
@@ -1206,7 +1199,6 @@ bool GrContext::writeTexturePixels(GrTexture* texture,
int left, int top, int width, int height,
GrPixelConfig config, const void* buffer, size_t rowBytes,
uint32_t flags) {
- SK_TRACE_EVENT0("GrContext::writeTexturePixels");
ASSERT_OWNED_RESOURCE(texture);
if ((kUnpremul_PixelOpsFlag & flags) || !fGpu->canWriteTexturePixels(texture, config)) {
@@ -1231,7 +1223,6 @@ bool GrContext::readTexturePixels(GrTexture* texture,
int left, int top, int width, int height,
GrPixelConfig config, void* buffer, size_t rowBytes,
uint32_t flags) {
- SK_TRACE_EVENT0("GrContext::readTexturePixels");
ASSERT_OWNED_RESOURCE(texture);
GrRenderTarget* target = texture->asRenderTarget();
@@ -1321,7 +1312,6 @@ bool GrContext::readRenderTargetPixels(GrRenderTarget* target,
int left, int top, int width, int height,
GrPixelConfig dstConfig, void* buffer, size_t rowBytes,
uint32_t flags) {
- SK_TRACE_EVENT0("GrContext::readRenderTargetPixels");
ASSERT_OWNED_RESOURCE(target);
if (NULL == target) {
@@ -1509,7 +1499,6 @@ bool GrContext::writeRenderTargetPixels(GrRenderTarget* target,
const void* buffer,
size_t rowBytes,
uint32_t flags) {
- SK_TRACE_EVENT0("GrContext::writeRenderTargetPixels");
ASSERT_OWNED_RESOURCE(target);
if (NULL == target) {
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp
index 1f20ac2724..8d2b2b7267 100644
--- a/src/gpu/GrDefaultPathRenderer.cpp
+++ b/src/gpu/GrDefaultPathRenderer.cpp
@@ -13,7 +13,7 @@
#include "SkString.h"
#include "SkStrokeRec.h"
#include "SkTLazy.h"
-#include "SkTrace.h"
+#include "SkTraceEvent.h"
GrDefaultPathRenderer::GrDefaultPathRenderer(bool separateStencilSupport,
@@ -196,8 +196,6 @@ bool GrDefaultPathRenderer::createGeom(const SkPath& path,
int* indexCnt,
GrDrawTarget::AutoReleaseGeometry* arg) {
{
- SK_TRACE_EVENT0("GrDefaultPathRenderer::createGeom");
-
SkScalar srcSpaceTolSqd = SkScalarMul(srcSpaceTol, srcSpaceTol);
int contourCnt;
int maxPts = GrPathUtils::worstCasePointCount(path, &contourCnt,
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp
index 94568e034a..f20d9368a7 100644
--- a/src/gpu/gl/GrGLShaderBuilder.cpp
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp
@@ -13,7 +13,7 @@
#include "GrGpuGL.h"
#include "GrTexture.h"
#include "SkRTConf.h"
-#include "SkTrace.h"
+#include "SkTraceEvent.h"
#define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
#define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->gpu()->glInterface(), R, X)
@@ -570,8 +570,6 @@ const char* GrGLShaderBuilder::enableSecondaryOutput() {
}
bool GrGLShaderBuilder::finish(GrGLuint* outProgramId) {
- SK_TRACE_EVENT0("GrGLShaderBuilder::finish");
-
GrGLuint programId = 0;
GL_CALL_RET(programId, CreateProgram());
if (!programId) {
diff --git a/src/utils/SkDebugTrace.h b/src/utils/SkDebugTrace.h
deleted file mode 100644
index 5ec3e1c477..0000000000
--- a/src/utils/SkDebugTrace.h
+++ /dev/null
@@ -1,24 +0,0 @@
-
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkUserTrace_DEFINED
-#define SkUserTrace_DEFINED
-
-/* Sample implementation of SkUserTrace that routes all of the
- trace macros to debug output stream.
- To use this, redefine SK_USER_TRACE_INCLUDE_FILE in
- include/config/SkUserConfig.h to point to this file
-*/
-#define SK_TRACE_EVENT0(event) \
- SkDebugf("Trace: %s\n", event)
-#define SK_TRACE_EVENT1(event, name1, value1) \
- SkDebugf("Trace: %s (%s=%s)\n", event, name1, value1)
-#define SK_TRACE_EVENT2(event, name1, value1, name2, value2) \
- SkDebugf("Trace: %s (%s=%s, %s=%s)\n", event, name1, value1, name2, value2)
-
-#endif