diff options
author | Chris Craik <ccraik@google.com> | 2015-11-16 10:27:59 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-11-17 14:50:49 -0800 |
commit | 8ecf41c61a5185207a21d64681e8ebc2502b7b2a (patch) | |
tree | 94592cbff1b686302433a68a74b01bdb3b44d487 /libs/hwui/DeviceInfo.cpp | |
parent | b20dbf6c6a19d6f6f69791eba7492c4480e8f113 (diff) |
Add temporary layer alpha fallback to OpReorderer
Also adds logic to clip temporary layers to viewport both for
efficiency and to allow large ones (such as the fallback case) to fit
in max texture size.
Change-Id: Iee51495220f5ca1dc7e6f5fd3615db2e896efd74
Diffstat (limited to 'libs/hwui/DeviceInfo.cpp')
-rw-r--r-- | libs/hwui/DeviceInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/DeviceInfo.cpp b/libs/hwui/DeviceInfo.cpp index 39b7ecb9a914..4cfbb2a43198 100644 --- a/libs/hwui/DeviceInfo.cpp +++ b/libs/hwui/DeviceInfo.cpp @@ -18,6 +18,7 @@ #include "Extensions.h" #include <GLES2/gl2.h> +#include <log/log.h> #include <thread> #include <mutex> @@ -29,6 +30,7 @@ static DeviceInfo* sDeviceInfo = nullptr; static std::once_flag sInitializedFlag; const DeviceInfo* DeviceInfo::get() { + LOG_ALWAYS_FATAL_IF(!sDeviceInfo, "DeviceInfo not yet initialized."); return sDeviceInfo; } |