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

Side by Side Diff: src/gpu/SkGpuDevice.cpp

Issue 1580023002: GrAuditTrail hooks in GrContext + GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@audittrail-3-gatherframes
Patch Set: tweaks Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrDrawingManager.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkGpuDevice.h" 8 #include "SkGpuDevice.h"
9 9
10 #include "GrBlurUtils.h" 10 #include "GrBlurUtils.h"
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 1777
1778 /////////////////////////////////////////////////////////////////////////////// 1778 ///////////////////////////////////////////////////////////////////////////////
1779 1779
1780 bool SkGpuDevice::onShouldDisableLCD(const SkPaint& paint) const { 1780 bool SkGpuDevice::onShouldDisableLCD(const SkPaint& paint) const {
1781 return GrTextContext::ShouldDisableLCD(paint); 1781 return GrTextContext::ShouldDisableLCD(paint);
1782 } 1782 }
1783 1783
1784 void SkGpuDevice::flush() { 1784 void SkGpuDevice::flush() {
1785 ASSERT_SINGLE_OWNER 1785 ASSERT_SINGLE_OWNER
1786 DO_DEFERRED_CLEAR(); 1786 DO_DEFERRED_CLEAR();
1787
1788 // Clear batch debugging output
1789 // TODO not exactly sure where this should live
1790 if (GR_BATCH_DEBUGGING_OUTPUT) {
1791 SkDebugf("%s\n", fContext->getAuditTrail()->toJson().c_str());
1792 // TODO This currently crashes because not all ops are accounted for
1793 GR_AUDIT_TRAIL_RESET(fContext->getAuditTrail());
1794 }
1787 fRenderTarget->prepareForExternalIO(); 1795 fRenderTarget->prepareForExternalIO();
1788 } 1796 }
1789 1797
1790 /////////////////////////////////////////////////////////////////////////////// 1798 ///////////////////////////////////////////////////////////////////////////////
1791 1799
1792 SkBaseDevice* SkGpuDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint *) { 1800 SkBaseDevice* SkGpuDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint *) {
1793 ASSERT_SINGLE_OWNER 1801 ASSERT_SINGLE_OWNER
1794 GrSurfaceDesc desc; 1802 GrSurfaceDesc desc;
1795 desc.fConfig = fRenderTarget->config(); 1803 desc.fConfig = fRenderTarget->config();
1796 desc.fFlags = kRenderTarget_GrSurfaceFlag; 1804 desc.fFlags = kRenderTarget_GrSurfaceFlag;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 } 1914 }
1907 1915
1908 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { 1916 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() {
1909 ASSERT_SINGLE_OWNER 1917 ASSERT_SINGLE_OWNER
1910 // We always return a transient cache, so it is freed after each 1918 // We always return a transient cache, so it is freed after each
1911 // filter traversal. 1919 // filter traversal.
1912 return SkGpuDevice::NewImageFilterCache(); 1920 return SkGpuDevice::NewImageFilterCache();
1913 } 1921 }
1914 1922
1915 #endif 1923 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawingManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698