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

Unified Diff: src/gpu/GrGpu.h

Issue 174123003: Add hooks for GL_EXT_debug_marker in gpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 00791be054a1e55ceb7c1c36c15c2a465677c7b9..35b53339db63d190a05435859e60c98cee0cb517 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -330,6 +330,11 @@ public:
void getPathStencilSettingsForFillType(SkPath::FillType fill, GrStencilSettings* outStencilSettings);
+ // GrDrawTarget Overrides
+ virtual void insertEventMarker(const char* marker) SK_OVERRIDE;
+ virtual void pushGroupMarker(const char* marker) SK_OVERRIDE;
+ virtual void popGroupMarker() SK_OVERRIDE;
+
protected:
enum DrawType {
kDrawPoints_DrawType,
@@ -458,6 +463,11 @@ private:
// overridden by backend-specific derived class to perform the resolve
virtual void onResolveRenderTarget(GrRenderTarget* target) = 0;
+ // overridden by backend-specific derived class to perform debug markers
bsalomon 2014/02/20 22:14:13 I'd bubble the foo/onFoo split up to GrDT. We can
+ virtual void onInsertEventMarker(const char* marker) = 0;
+ virtual void onPushGroupMarker(const char* marker) = 0;
+ virtual void onPopGroupMarker() = 0;
+
// width and height may be larger than rt (if underlying API allows it).
// Should attach the SB to the RT. Returns false if compatible sb could
// not be created.

Powered by Google App Engine
This is Rietveld 408576698