From 9440345a81d6c2372ac0aed937080f3da67439dd Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Tue, 18 Apr 2017 15:52:36 -0400 Subject: Add backend safe classes for passing in external texture and render targets into gpu This CL adds the GrBackend* classes as well as just updates the API for SkSurface and SkImage. The implementation on SkSurface/Image and the plumbing down into Ganesh will be in an additional CL. Besides the change to use the type safe classes, we also pull the SurfaceFlags, origin, samples, out of the descriptor and pass those in directly. Bug: skia: Change-Id: I9702981fe26c3d5d7d2cbcf6977ba569d356d854 Reviewed-on: https://skia-review.googlesource.com/13122 Commit-Queue: Greg Daniel Reviewed-by: Brian Salomon --- gn/gpu.gni | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn') diff --git a/gn/gpu.gni b/gn/gpu.gni index bf908378be..84b9456efe 100644 --- a/gn/gpu.gni +++ b/gn/gpu.gni @@ -8,6 +8,7 @@ _src = get_path_info("../src", "abspath") _include = get_path_info("../include", "abspath") skia_gpu_sources = [ + "$_include/gpu/GrBackendSurface.h", "$_include/gpu/GrBlend.h", "$_include/gpu/GrBuffer.h", "$_include/gpu/GrCaps.h", @@ -63,6 +64,7 @@ skia_gpu_sources = [ "$_src/gpu/GrAuditTrail.cpp", "$_src/gpu/GrAutoLocaleSetter.h", "$_src/gpu/GrAllocator.h", + "$_src/gpu/GrBackendSurface.cpp", "$_src/gpu/GrBitmapTextureMaker.cpp", "$_src/gpu/GrBitmapTextureMaker.h", "$_src/gpu/GrBlend.cpp", -- cgit v1.2.3