aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/gpu.gypi
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-06-30 12:15:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-30 12:15:49 -0700
commit42eafa4bc00354b132ad114d22ed6b95d8849891 (patch)
tree06cf28b2181094aa53d1232381dafa9d5d28d385 /gyp/gpu.gypi
parenta71b89866deeea26eb7fd9d41eb3d28ce60ee92a (diff)
Begin instanced rendering for simple shapes
Adds a module that performs instanced rendering and starts using it for a select subset of draws on Mac GL platforms. The instance processor can currently handle rects, ovals, round rects, and double round rects. It can generalize shapes as round rects in order to improve batching. The instance processor also employs new drawing algorithms, irrespective of instanced rendering, that improve GPU-side performance (e.g. sample mask, different triangle layouts, etc.). This change only scratches the surface of instanced rendering. The majority of draws still only have one instance. Future work may include: * Passing coord transforms through the texel buffer. * Sending FP uniforms through instanced vertex attribs. * Using instanced rendering for more draws (stencil writes, drawAtlas, etc.). * Adding more shapes to the instance processor’s repertoire. * Batching draws that have mismatched scissors (analyzing draw bounds, inserting clip planes, etc.). * Bindless textures. * Uber shaders. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2066993003 Review-Url: https://codereview.chromium.org/2066993003
Diffstat (limited to 'gyp/gpu.gypi')
-rw-r--r--gyp/gpu.gypi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gyp/gpu.gypi b/gyp/gpu.gypi
index cd7a78df24..c9e206f809 100644
--- a/gyp/gpu.gypi
+++ b/gyp/gpu.gypi
@@ -60,6 +60,7 @@
# Private includes
'<(skia_include_path)/private/GrAuditTrail.h',
+ '<(skia_include_path)/private/GrInstancedPipelineInfo.h',
'<(skia_include_path)/private/GrSingleOwner.h',
'<(skia_include_path)/private/GrRenderTargetProxy.h',
'<(skia_include_path)/private/GrSurfaceProxy.h',
@@ -308,6 +309,14 @@
'<(skia_src_path)/gpu/effects/GrYUVEffect.cpp',
'<(skia_src_path)/gpu/effects/GrYUVEffect.h',
+ '<(skia_src_path)/gpu/instanced/InstancedRendering.cpp',
+ '<(skia_src_path)/gpu/instanced/InstancedRendering.h',
+ '<(skia_src_path)/gpu/instanced/InstancedRenderingTypes.h',
+ '<(skia_src_path)/gpu/instanced/InstanceProcessor.cpp',
+ '<(skia_src_path)/gpu/instanced/InstanceProcessor.h',
+ '<(skia_src_path)/gpu/instanced/GLInstancedRendering.cpp',
+ '<(skia_src_path)/gpu/instanced/GLInstancedRendering.h',
+
# text
'<(skia_src_path)/gpu/text/GrAtlasTextBlob.cpp',
'<(skia_src_path)/gpu/text/GrAtlasTextBlob_regenInBatch.cpp',