aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrAtlas.cpp
diff options
context:
space:
mode:
authorGravatar junov@google.com <junov@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-30 17:30:49 +0000
committerGravatar junov@google.com <junov@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-30 17:30:49 +0000
commit4ee7ae5dcfe2055cfcfc21bf2cec1d790330eb4a (patch)
tree7751fc8f0581efea184122ae1fd963ff147133c6 /gpu/src/GrAtlas.cpp
parent72798e4808f1e3fb221395a8d78f7a748d76062a (diff)
Adding the notion of a volatile bitmap to SkBitmap.
Volatility is a hint that indicates that the contents of a bitmap are ephemeral. SkGpuDevice will not preserve volatile bitmaps in its texture cache, and will use textures from a pool of keyless (recyclable) textures to avoid the performance hit of texture allocation and release. A subsequent change is required in webkit in order to take advantage of this optimization. putImageData, and other methods that create temporary bitmaps will have to mark their bitmaps as volatile. before rendering them through skia. git-svn-id: http://skia.googlecode.com/svn/trunk@1769 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrAtlas.cpp')
-rw-r--r--gpu/src/GrAtlas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/src/GrAtlas.cpp b/gpu/src/GrAtlas.cpp
index 480a3073f9..c623952297 100644
--- a/gpu/src/GrAtlas.cpp
+++ b/gpu/src/GrAtlas.cpp
@@ -117,7 +117,7 @@ bool GrAtlas::addSubImage(int width, int height, const void* image,
image = storage.get();
}
adjustForPlot(loc, fPlot);
- fTexture->uploadTextureData(loc->fX, loc->fY, dstW, dstH, image);
+ fTexture->uploadTextureData(loc->fX, loc->fY, dstW, dstH, image, 0);
// now tell the caller to skip the top/left BORDER
loc->fX += BORDER;