Lines Matching defs:const
30 GrSurfaceProxyView(const GrSurfaceProxyView&) = default;
32 operator bool() const { return SkToBool(fProxy.get()); }
34 GrSurfaceProxyView& operator=(const GrSurfaceProxyView&) = default;
37 bool operator==(const GrSurfaceProxyView& view) const {
42 bool operator!=(const GrSurfaceProxyView& other) const { return !(*this == other); }
44 int width() const { return this->proxy()->width(); }
45 int height() const { return this->proxy()->height(); }
46 SkISize dimensions() const { return this->proxy()->dimensions(); }
48 GrMipmapped mipmapped() const {
49 if (const GrTextureProxy* proxy = this->asTextureProxy()) {
55 GrSurfaceProxy* proxy() const { return fProxy.get(); }
56 sk_sp<GrSurfaceProxy> refProxy() const { return fProxy; }
58 GrTextureProxy* asTextureProxy() const {
64 sk_sp<GrTextureProxy> asTextureProxyRef() const {
68 GrRenderTargetProxy* asRenderTargetProxy() const {
75 sk_sp<GrRenderTargetProxy> asRenderTargetProxyRef() const {
79 GrSurfaceOrigin origin() const { return fOrigin; }
80 GrSwizzle swizzle() const { return fSwizzle; }
84 GrSurfaceProxyView makeSwizzle(GrSwizzle swizzle) const & {