diff options
author | bsalomon <bsalomon@google.com> | 2014-09-22 09:12:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-22 09:12:11 -0700 |
commit | 4401a1f7d6d4fad6315b8b8647d9bb7d1ae90141 (patch) | |
tree | 9ee0776304de9dc98e48efc4943dd0fdc45db453 /include/gpu | |
parent | 150723b9298772a5096bec7acd2999c5c9d66239 (diff) |
Revert of Don't flush on read/write pixels unless necessary (patchset #2 id:20001 of https://codereview.chromium.org/586073002/)
Reason for revert:
Breaking the tree
Original issue's description:
> Don't flush on read/write pixels unless necessary
>
> BUG=skia:2889
>
> Committed: https://skia.googlesource.com/skia/+/150723b9298772a5096bec7acd2999c5c9d66239
R=robertphillips@google.com
TBR=robertphillips@google.com
NOTREECHECKS=true
NOTRY=true
BUG=skia:2889
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/594543004
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrGpuResource.h | 5 | ||||
-rw-r--r-- | include/gpu/GrSurface.h | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h index 61849e7232..f20bad3e9f 100644 --- a/include/gpu/GrGpuResource.h +++ b/include/gpu/GrGpuResource.h @@ -80,14 +80,9 @@ public: #endif } - protected: GrIORef() : fRefCnt(1), fPendingReads(0), fPendingWrites(0) {} - bool internalHasPendingRead() const { return SkToBool(fPendingReads); } - bool internalHasPendingWrite() const { return SkToBool(fPendingWrites); } - bool internalHasPendingIO() const { return SkToBool(fPendingWrites | fPendingReads); } - private: void addPendingRead() const { this->validate(); diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h index 24eb39a81b..8315c63fbf 100644 --- a/include/gpu/GrSurface.h +++ b/include/gpu/GrSurface.h @@ -135,10 +135,6 @@ public: */ bool savePixels(const char* filename); - bool hasPendingRead() const; - bool hasPendingWrite() const; - bool hasPendingIO() const; - protected: GrSurface(GrGpu* gpu, bool isWrapped, const GrTextureDesc& desc) : INHERITED(gpu, isWrapped) |