Loading libs/hwui/renderthread/CanvasContext.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -564,8 +564,8 @@ SkISize CanvasContext::getNextFrameSize() const { ReliableSurface* surface = mNativeSurface.get(); if (surface) { SkISize size; surface->query(NATIVE_WINDOW_WIDTH, &size.fWidth); surface->query(NATIVE_WINDOW_HEIGHT, &size.fHeight); size.fWidth = ANativeWindow_getWidth(surface); size.fHeight = ANativeWindow_getHeight(surface); return size; } return {INT32_MAX, INT32_MAX}; Loading libs/hwui/tests/unit/SkiaDisplayListTests.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -208,9 +208,8 @@ RENDERTHREAD_SKIA_PIPELINE_TEST(SkiaDisplayList, prepareListAndChildren_vdOffscr test::TestContext testContext; testContext.setRenderOffscreen(true); auto surface = testContext.surface(); int width, height; surface->query(NATIVE_WINDOW_WIDTH, &width); surface->query(NATIVE_WINDOW_HEIGHT, &height); int width = ANativeWindow_getWidth(surface.get()); int height = ANativeWindow_getHeight(surface.get()); canvasContext->setSurface(std::move(surface)); TreeInfo info(TreeInfo::MODE_FULL, *canvasContext.get()); Loading Loading
libs/hwui/renderthread/CanvasContext.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -564,8 +564,8 @@ SkISize CanvasContext::getNextFrameSize() const { ReliableSurface* surface = mNativeSurface.get(); if (surface) { SkISize size; surface->query(NATIVE_WINDOW_WIDTH, &size.fWidth); surface->query(NATIVE_WINDOW_HEIGHT, &size.fHeight); size.fWidth = ANativeWindow_getWidth(surface); size.fHeight = ANativeWindow_getHeight(surface); return size; } return {INT32_MAX, INT32_MAX}; Loading
libs/hwui/tests/unit/SkiaDisplayListTests.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -208,9 +208,8 @@ RENDERTHREAD_SKIA_PIPELINE_TEST(SkiaDisplayList, prepareListAndChildren_vdOffscr test::TestContext testContext; testContext.setRenderOffscreen(true); auto surface = testContext.surface(); int width, height; surface->query(NATIVE_WINDOW_WIDTH, &width); surface->query(NATIVE_WINDOW_HEIGHT, &height); int width = ANativeWindow_getWidth(surface.get()); int height = ANativeWindow_getHeight(surface.get()); canvasContext->setSurface(std::move(surface)); TreeInfo info(TreeInfo::MODE_FULL, *canvasContext.get()); Loading