aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Kevin Lubick <kjlubick@google.com>2018-03-12 10:17:06 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-12 14:44:18 +0000
commitb5502b20129a71c6bdb937792f940b7581dbb5ec (patch)
treee9703f44f35f95ca23cfcba4e12b79bc284a335a /src/gpu
parent689d02d4b480289aacaeb2da83b93d733cdfcb0f (diff)
Small cleanups suggested by ClangTidy
Bug: skia: Cq-Include-Trybots: skia.primary:Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-SKNX_NO_SIMD Change-Id: Idd95e359838fdaecbdccc3a2c5a1b36971f20b8b Reviewed-on: https://skia-review.googlesource.com/113703 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrContextPriv.h2
-rw-r--r--src/gpu/GrDDLContext.cpp2
-rw-r--r--src/gpu/GrProxyProvider.h2
-rw-r--r--src/gpu/ops/GrSmallPathRenderer.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h
index 745397658c..f7bd911b1e 100644
--- a/src/gpu/GrContextPriv.h
+++ b/src/gpu/GrContextPriv.h
@@ -28,7 +28,7 @@ public:
/**
* Create a GrContext without a resource cache
*/
- static sk_sp<GrContext> MakeDDL(sk_sp<GrContextThreadSafeProxy>);
+ static sk_sp<GrContext> MakeDDL(const sk_sp<GrContextThreadSafeProxy>&);
GrDrawingManager* drawingManager() { return fContext->fDrawingManager.get(); }
diff --git a/src/gpu/GrDDLContext.cpp b/src/gpu/GrDDLContext.cpp
index eba0379aa8..9a91ab8526 100644
--- a/src/gpu/GrDDLContext.cpp
+++ b/src/gpu/GrDDLContext.cpp
@@ -61,7 +61,7 @@ private:
typedef GrContext INHERITED;
};
-sk_sp<GrContext> GrContextPriv::MakeDDL(sk_sp<GrContextThreadSafeProxy> proxy) {
+sk_sp<GrContext> GrContextPriv::MakeDDL(const sk_sp<GrContextThreadSafeProxy>& proxy) {
sk_sp<GrContext> context(new GrDDLContext(proxy));
// Note: we aren't creating a Gpu here. This causes the resource provider & cache to
diff --git a/src/gpu/GrProxyProvider.h b/src/gpu/GrProxyProvider.h
index 45a3c1a1b7..e1ddf5c1f6 100644
--- a/src/gpu/GrProxyProvider.h
+++ b/src/gpu/GrProxyProvider.h
@@ -140,7 +140,7 @@ public:
/*
* Create a render target proxy that wraps a backend texture
*/
- sk_sp<GrSurfaceProxy> wrapBackendTextureAsRenderTarget(const GrBackendTexture& tex,
+ sk_sp<GrSurfaceProxy> wrapBackendTextureAsRenderTarget(const GrBackendTexture& backendTex,
GrSurfaceOrigin origin,
int sampleCnt);
diff --git a/src/gpu/ops/GrSmallPathRenderer.cpp b/src/gpu/ops/GrSmallPathRenderer.cpp
index 94204c8f74..f8c21095d0 100644
--- a/src/gpu/ops/GrSmallPathRenderer.cpp
+++ b/src/gpu/ops/GrSmallPathRenderer.cpp
@@ -123,7 +123,7 @@ public:
return data.fKey;
}
- static inline uint32_t Hash(ShapeDataKey key) {
+ static inline uint32_t Hash(const ShapeDataKey& key) {
return SkOpts::hash(key.data(), sizeof(uint32_t) * key.count32());
}
};