Make gms use getTopDevice() rather than getDevice().

R=robertphillips@google.com

Review URL: https://codereview.chromium.org/14885012

git-svn-id: http://skia.googlecode.com/svn/trunk@9091 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2013-05-10 14:12:08 +00:00
parent 91b7116a10
commit c978478514
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ protected:
SkScalar vertMargin(SkIntToScalar(10));
draw_checks(canvas, 40, 40);
SkBitmap src = canvas->getDevice()->accessBitmap(false);
SkBitmap src = canvas->getTopDevice()->accessBitmap(false);
for (unsigned i = 0; i < NUM_CONFIGS; ++i) {
if (!src.deepCopyTo(&fDst[i], gConfigs[i])) {

View File

@ -38,7 +38,7 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) {
SkDevice* device = canvas->getDevice();
SkDevice* device = canvas->getTopDevice();
GrRenderTarget* target = (GrRenderTarget*) device->accessRenderTarget();
GrContext* ctx = GetGr();
if (ctx && target) {