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:
parent
91b7116a10
commit
c978478514
@ -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])) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user