diff options
author | John Reck <jreck@google.com> | 2019-05-31 20:48:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-05-31 20:48:01 +0000 |
commit | fa93e3cefc6346ce9fad1c1908c10584ee387b9f (patch) | |
tree | d04974a80e78a03ef1575d5bdd194bfce685e96e /libs/hwui/Properties.cpp | |
parent | d4ac2b99b72e73d65c77d93a6e13b2cfd2426f04 (diff) | |
parent | 23462d88f5a3753111aba3835a5aef8e619468d6 (diff) |
Merge "Delete wrap_gles capability"
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r-- | libs/hwui/Properties.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index 1253beb2d2b2..4e7df88b8095 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -191,14 +191,14 @@ RenderPipelineType Properties::getRenderPipelineType() { } void Properties::overrideRenderPipelineType(RenderPipelineType type) { -#if !defined(HWUI_GLES_WRAP_ENABLED) // If we're doing actual rendering then we can't change the renderer after it's been set. // Unit tests can freely change this as often as it wants, though, as there's no actual // GL rendering happening if (sRenderPipelineType != RenderPipelineType::NotInitialized) { + LOG_ALWAYS_FATAL_IF(sRenderPipelineType != type, + "Trying to change pipeline but it's already set"); return; } -#endif sRenderPipelineType = type; } |