From 500a0c30d4dcd012218c3e44a62926a1c34a259f Mon Sep 17 00:00:00 2001 From: Stan Iliev Date: Wed, 26 Oct 2016 10:30:09 -0400 Subject: Implement Skia pipelines for OpenGL and Vulkan. Implement Skia pipelines for OpenGL and Vulkan: base SkiaPipeline, SkiaOpenGLPipeline and SkiaVulkanPipeline. Write unit tests for SkiaPipeline. Test: Built and run manually on angler-eng. Change-Id: Ie02583426cb3547541ad9bf91700602a6163ff58 --- libs/hwui/DeviceInfo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/hwui/DeviceInfo.cpp') diff --git a/libs/hwui/DeviceInfo.cpp b/libs/hwui/DeviceInfo.cpp index 4cfbb2a43198..700642ed7334 100644 --- a/libs/hwui/DeviceInfo.cpp +++ b/libs/hwui/DeviceInfo.cpp @@ -41,6 +41,13 @@ void DeviceInfo::initialize() { }); } +void DeviceInfo::initialize(int maxTextureSize) { + std::call_once(sInitializedFlag, [maxTextureSize]() { + sDeviceInfo = new DeviceInfo(); + sDeviceInfo->mMaxTextureSize = maxTextureSize; + }); +} + void DeviceInfo::load() { glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mMaxTextureSize); } -- cgit v1.2.3-59-g8ed1b