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

Unified Diff: src/gpu/GrRenderTarget.cpp

Issue 695813003: Add class GrGLTextureRenderTarget for GL texture/rendertarget objects (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: forgot to save file Created 6 years, 1 month 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
Index: src/gpu/GrRenderTarget.cpp
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index 7ed70c954ebfc17868369e7be29d4ceca6f6ff87..7aeb4eec1a1596e684529da23c68b03d0da36c48 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -31,20 +31,6 @@ void GrRenderTarget::discard() {
context->discardRenderTarget(this);
}
-size_t GrRenderTarget::gpuMemorySize() const {
- size_t colorBits;
- if (kUnknown_GrPixelConfig == fDesc.fConfig) {
- colorBits = 32; // don't know, make a guess
- } else {
- colorBits = GrBytesPerPixel(fDesc.fConfig) * 8;
- }
- uint64_t size = fDesc.fWidth;
- size *= fDesc.fHeight;
- size *= colorBits;
- size *= SkTMax(1, fDesc.fSampleCnt);
- return (size_t)(size / 8);
-}
-
void GrRenderTarget::flagAsNeedingResolve(const SkIRect* rect) {
if (kCanResolve_ResolveType == getResolveType()) {
if (rect) {

Powered by Google App Engine
This is Rietveld 408576698