Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: include/gpu/SkGrPixelRef.h

Issue 2150693002: move GrPixelRef headers to private (as we work to eliminate them) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/SkGrTexturePixelRef.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/SkGrPixelRef.h
diff --git a/include/gpu/SkGrPixelRef.h b/include/gpu/SkGrPixelRef.h
deleted file mode 100644
index 2bbe48fa09990628cbd4acad50d218ab286d254e..0000000000000000000000000000000000000000
--- a/include/gpu/SkGrPixelRef.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2010 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkGrPixelRef_DEFINED
-#define SkGrPixelRef_DEFINED
-
-#include "SkBitmap.h"
-#include "SkPixelRef.h"
-#include "GrTexture.h"
-#include "GrRenderTarget.h"
-
-
-/**
- * Common baseclass that implements onLockPixels() by calling onReadPixels().
- * Since it has a copy, it always returns false for onLockPixelsAreWritable().
- */
-class SK_API SkROLockPixelsPixelRef : public SkPixelRef {
-public:
- SkROLockPixelsPixelRef(const SkImageInfo&);
- virtual ~SkROLockPixelsPixelRef();
-
-protected:
- bool onNewLockPixels(LockRec*) override;
- void onUnlockPixels() override;
- bool onLockPixelsAreWritable() const override; // return false;
-
-private:
- SkBitmap fBitmap;
- typedef SkPixelRef INHERITED;
-};
-
-/**
- * PixelRef that wraps a GrSurface
- */
-class SK_API SkGrPixelRef : public SkROLockPixelsPixelRef {
-public:
- /**
- * Constructs a pixel ref around a GrSurface.
- */
- SkGrPixelRef(const SkImageInfo&, GrSurface*);
- virtual ~SkGrPixelRef();
-
- // override from SkPixelRef
- GrTexture* getTexture() override;
-
-protected:
- // overrides from SkPixelRef
- bool onReadPixels(SkBitmap* dst, SkColorType, const SkIRect* subset) override;
- SkPixelRef* deepCopy(SkColorType, SkColorSpace*, const SkIRect* subset) override;
- void onNotifyPixelsChanged() override;
-
-private:
- GrSurface* fSurface;
- typedef SkROLockPixelsPixelRef INHERITED;
-};
-
-#endif
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/SkGrTexturePixelRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698