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

Unified Diff: src/gpu/GrGpu.cpp

Issue 1323823003: Remove GrGpuTraceMarker hooks until we rethink the design (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: compiler warning Created 5 years, 4 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/GrGpu.h ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpu.cpp
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index 2fdfbc424200131b4f8ba1ad26a84b7dbe5966ba..48e39f41afd2c14abd35aea42591ef85f1e11db3 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -45,7 +45,6 @@ GrVertices& GrVertices::operator =(const GrVertices& di) {
GrGpu::GrGpu(GrContext* context)
: fResetTimestamp(kExpiredTimestamp+1)
, fResetBits(kAll_GrBackendState)
- , fGpuTraceMarkerCount(0)
, fContext(context) {
}
@@ -346,47 +345,6 @@ void GrGpu::resolveRenderTarget(GrRenderTarget* target) {
this->onResolveRenderTarget(target);
}
-typedef GrTraceMarkerSet::Iter TMIter;
-void GrGpu::saveActiveTraceMarkers() {
- if (this->caps()->gpuTracingSupport()) {
- SkASSERT(0 == fStoredTraceMarkers.count());
- fStoredTraceMarkers.addSet(fActiveTraceMarkers);
- for (TMIter iter = fStoredTraceMarkers.begin(); iter != fStoredTraceMarkers.end(); ++iter) {
- this->removeGpuTraceMarker(&(*iter));
- }
- }
-}
-
-void GrGpu::restoreActiveTraceMarkers() {
- if (this->caps()->gpuTracingSupport()) {
- SkASSERT(0 == fActiveTraceMarkers.count());
- for (TMIter iter = fStoredTraceMarkers.begin(); iter != fStoredTraceMarkers.end(); ++iter) {
- this->addGpuTraceMarker(&(*iter));
- }
- for (TMIter iter = fActiveTraceMarkers.begin(); iter != fActiveTraceMarkers.end(); ++iter) {
- this->fStoredTraceMarkers.remove(*iter);
- }
- }
-}
-
-void GrGpu::addGpuTraceMarker(const GrGpuTraceMarker* marker) {
- if (this->caps()->gpuTracingSupport()) {
- SkASSERT(fGpuTraceMarkerCount >= 0);
- this->fActiveTraceMarkers.add(*marker);
- this->didAddGpuTraceMarker();
- ++fGpuTraceMarkerCount;
- }
-}
-
-void GrGpu::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {
- if (this->caps()->gpuTracingSupport()) {
- SkASSERT(fGpuTraceMarkerCount >= 1);
- this->fActiveTraceMarkers.remove(*marker);
- this->didRemoveGpuTraceMarker();
- --fGpuTraceMarkerCount;
- }
-}
-
////////////////////////////////////////////////////////////////////////////////
void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) {
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698