Remove isRecording() method from renderers
DisplayListRenderer is all that's accessed from java, and is entirely
separate from OpenGLRenderer now.
Change-Id: Ie733be71520c13fdb55dfe3522bb445ae2b50ac1
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h
index 8ca9af1..2b2d402 100644
--- a/libs/hwui/DisplayListRenderer.h
+++ b/libs/hwui/DisplayListRenderer.h
@@ -59,8 +59,6 @@
DisplayListData* finishRecording();
- virtual bool isRecording() const { return true; }
-
// ----------------------------------------------------------------------------
// Frame state operations
// ----------------------------------------------------------------------------
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index ede89d7..ce48ad3 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1515,17 +1515,15 @@
return true;
}
- if (!isRecording()) {
- // not quick rejected, so enable the scissor if clipRequired
- mCaches.setScissorEnabled(mScissorOptimizationDisabled || clipRequired);
- mSkipOutlineClip = !roundRectClipRequired;
- }
+ // not quick rejected, so enable the scissor if clipRequired
+ mCaches.setScissorEnabled(mScissorOptimizationDisabled || clipRequired);
+ mSkipOutlineClip = !roundRectClipRequired;
return false;
}
void OpenGLRenderer::debugClip() {
#if DEBUG_CLIP_REGIONS
- if (!isRecording() && !currentSnapshot()->clipRegion->isEmpty()) {
+ if (!currentSnapshot()->clipRegion->isEmpty()) {
SkPaint paint;
paint.setColor(0x7f00ff00);
drawRegionRects(*(currentSnapshot()->clipRegion, paint);
diff --git a/libs/hwui/Renderer.h b/libs/hwui/Renderer.h
index 2ec99c9..ccd3ba5 100644
--- a/libs/hwui/Renderer.h
+++ b/libs/hwui/Renderer.h
@@ -56,14 +56,6 @@
virtual ~Renderer() {}
/**
- * Indicates whether this renderer is recording drawing commands for later playback.
- * If this method returns true, the drawing commands are deferred.
- */
- virtual bool isRecording() const {
- return false;
- }
-
- /**
* Safely retrieves the mode from the specified xfermode. If the specified
* xfermode is null, the mode is assumed to be SkXfermode::kSrcOver_Mode.
*/