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

Unified Diff: src/gpu/GrContext.cpp

Issue 196133033: replace old SK_TRACE_EVENT macros with new TRACE_EVENT ones (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAAConvexPathRenderer.cpp ('k') | src/gpu/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index c7e343393879798172444314c04534b29394bed1..2b71c544eecd690531f5b2c35ae7bc45d6e2e1c6 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
@@ -371,7 +371,7 @@ GrTexture* GrContext::createTexture(const GrTextureParams* params,
void* srcData,
size_t rowBytes,
GrResourceKey* cacheKey) {
- SK_TRACE_EVENT0("GrContext::createTexture");
+ TRACE_EVENT0("skia.ganesh","GrContext::createTexture");
epoger 2014/03/19 21:34:45 Should we use a macro or constant for the recurrin
GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
@@ -764,7 +764,7 @@ void GrContext::drawRect(const GrPaint& paint,
const SkRect& rect,
const SkStrokeRec* stroke,
const SkMatrix* matrix) {
- SK_TRACE_EVENT0("GrContext::drawRect");
+ TRACE_EVENT0("skia.ganesh","GrContext::drawRect");
AutoRestoreEffects are;
AutoCheckFlush acf(this);
@@ -886,7 +886,7 @@ void GrContext::drawRectToRect(const GrPaint& paint,
const SkRect& localRect,
const SkMatrix* dstMatrix,
const SkMatrix* localMatrix) {
- SK_TRACE_EVENT0("GrContext::drawRectToRect");
+ TRACE_EVENT0("skia.ganesh","GrContext::drawRectToRect");
AutoRestoreEffects are;
AutoCheckFlush acf(this);
GrDrawTarget* target = this->prepareToDraw(&paint, BUFFERED_DRAW, &are, &acf);
@@ -940,7 +940,7 @@ void GrContext::drawVertices(const GrPaint& paint,
const GrColor colors[],
const uint16_t indices[],
int indexCount) {
- SK_TRACE_EVENT0("GrContext::drawVertices");
+ TRACE_EVENT0("skia.ganesh","GrContext::drawVertices");
AutoRestoreEffects are;
AutoCheckFlush acf(this);
@@ -1202,7 +1202,7 @@ 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");
+ TRACE_EVENT0("skia.ganesh","GrContext::writeTexturePixels");
ASSERT_OWNED_RESOURCE(texture);
if ((kUnpremul_PixelOpsFlag & flags) || !fGpu->canWriteTexturePixels(texture, config)) {
@@ -1227,7 +1227,7 @@ 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");
+ TRACE_EVENT0("skia.ganesh","GrContext::readTexturePixels");
ASSERT_OWNED_RESOURCE(texture);
GrRenderTarget* target = texture->asRenderTarget();
@@ -1317,7 +1317,7 @@ 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");
+ TRACE_EVENT0("skia.ganesh","GrContext::readRenderTargetPixels");
ASSERT_OWNED_RESOURCE(target);
if (NULL == target) {
@@ -1505,7 +1505,7 @@ bool GrContext::writeRenderTargetPixels(GrRenderTarget* target,
const void* buffer,
size_t rowBytes,
uint32_t flags) {
- SK_TRACE_EVENT0("GrContext::writeRenderTargetPixels");
+ TRACE_EVENT0("skia.ganesh","GrContext::writeRenderTargetPixels");
ASSERT_OWNED_RESOURCE(target);
if (NULL == target) {
« no previous file with comments | « src/gpu/GrAAConvexPathRenderer.cpp ('k') | src/gpu/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698