Move GrDrawOp pipeline/clip processing to GrRenderTargetContext
authorBrian Salomon <bsalomon@google.com>
Mon, 6 Mar 2017 21:17:12 +0000 (16:17 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 7 Mar 2017 15:11:24 +0000 (15:11 +0000)
commit467921e5e6479fe9cebba125657d8e33d89004ae
treebffd056e5d9ad99a50c1876d658f4b31d6721d15
parent894d5611e54cbf62a03ff9ffb48a2302dda9ab86
Move GrDrawOp pipeline/clip processing to GrRenderTargetContext

This is currently done in GrOpList. However, it can trigger resource creation, which in turn can trigger a flush. In the future flushing may destroy the op list.

Change-Id: I21cb1e10060bf31c95431c0511fcfff637cd6498
Reviewed-on: https://skia-review.googlesource.com/9304
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
16 files changed:
gn/gpu.gni
include/gpu/GrCaps.h
src/gpu/GrGpu.h
src/gpu/GrRenderTargetContext.cpp
src/gpu/GrRenderTargetContext.h [moved from include/gpu/GrRenderTargetContext.h with 97% similarity]
src/gpu/GrRenderTargetOpList.cpp
src/gpu/GrRenderTargetOpList.h
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLCaps.h
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/GrGLGpu.h
src/gpu/vk/GrVkCaps.cpp
src/gpu/vk/GrVkCaps.h
src/gpu/vk/GrVkGpu.cpp
src/gpu/vk/GrVkGpu.h
tools/gpu/GrTest.cpp