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

Side by Side Diff: src/image/SkImage_Gpu.cpp

Issue 1808833002: Revert of Add SkSpecialImage::extractSubset & NewFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrSWMaskHelper.h ('k') | tests/DeviceLooperTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkAutoPixmapStorage.h"
9 #include "GrCaps.h" 8 #include "GrCaps.h"
10 #include "GrContext.h" 9 #include "GrContext.h"
11 #include "GrDrawContext.h" 10 #include "GrDrawContext.h"
12 #include "GrImageIDTextureAdjuster.h" 11 #include "GrImageIDTextureAdjuster.h"
13 #include "effects/GrYUVEffect.h" 12 #include "effects/GrYUVEffect.h"
14 #include "SkCanvas.h" 13 #include "SkCanvas.h"
15 #include "SkBitmapCache.h" 14 #include "SkBitmapCache.h"
16 #include "SkGpuDevice.h" 15 #include "SkGpuDevice.h"
17 #include "SkGrPixelRef.h" 16 #include "SkGrPixelRef.h"
18 #include "SkGrPriv.h" 17 #include "SkGrPriv.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 return nullptr; 449 return nullptr;
451 } 450 }
452 451
453 const SkIRect srcR = SkIRect::MakeWH(desc.fWidth, desc.fHeight); 452 const SkIRect srcR = SkIRect::MakeWH(desc.fWidth, desc.fHeight);
454 const SkIPoint dstP = SkIPoint::Make(0, 0); 453 const SkIPoint dstP = SkIPoint::Make(0, 0);
455 ctx->copySurface(dst, src, srcR, dstP); 454 ctx->copySurface(dst, src, srcR, dstP);
456 ctx->flushSurfaceWrites(dst); 455 ctx->flushSurfaceWrites(dst);
457 return dst; 456 return dst;
458 } 457 }
459 458
OLDNEW
« no previous file with comments | « src/gpu/GrSWMaskHelper.h ('k') | tests/DeviceLooperTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698