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

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

Issue 1905383002: Retract SkDevice a bit more (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/text/GrStencilAndCoverTextContext.cpp ('k') | tests/PremulAlphaRoundTripTest.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" 8 #include "SkAutoPixmapStorage.h"
9 #include "GrCaps.h" 9 #include "GrCaps.h"
10 #include "GrContext.h" 10 #include "GrContext.h"
11 #include "GrDrawContext.h" 11 #include "GrDrawContext.h"
12 #include "GrImageIDTextureAdjuster.h" 12 #include "GrImageIDTextureAdjuster.h"
13 #include "effects/GrYUVEffect.h" 13 #include "effects/GrYUVEffect.h"
14 #include "SkCanvas.h" 14 #include "SkCanvas.h"
15 #include "SkBitmapCache.h" 15 #include "SkBitmapCache.h"
16 #include "SkGpuDevice.h"
17 #include "SkGrPixelRef.h" 16 #include "SkGrPixelRef.h"
18 #include "SkGrPriv.h" 17 #include "SkGrPriv.h"
19 #include "SkImageFilter.h" 18 #include "SkImageFilter.h"
20 #include "SkImage_Gpu.h" 19 #include "SkImage_Gpu.h"
21 #include "SkPixelRef.h" 20 #include "SkPixelRef.h"
22 21
23 SkImage_Gpu::SkImage_Gpu(int w, int h, uint32_t uniqueID, SkAlphaType at, GrText ure* tex, 22 SkImage_Gpu::SkImage_Gpu(int w, int h, uint32_t uniqueID, SkAlphaType at, GrText ure* tex,
24 SkBudgeted budgeted) 23 SkBudgeted budgeted)
25 : INHERITED(w, h, uniqueID) 24 : INHERITED(w, h, uniqueID)
26 , fTexture(SkRef(tex)) 25 , fTexture(SkRef(tex))
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 return nullptr; 455 return nullptr;
457 } 456 }
458 457
459 const SkIRect srcR = SkIRect::MakeWH(desc.fWidth, desc.fHeight); 458 const SkIRect srcR = SkIRect::MakeWH(desc.fWidth, desc.fHeight);
460 const SkIPoint dstP = SkIPoint::Make(0, 0); 459 const SkIPoint dstP = SkIPoint::Make(0, 0);
461 ctx->copySurface(dst, src, srcR, dstP); 460 ctx->copySurface(dst, src, srcR, dstP);
462 ctx->flushSurfaceWrites(dst); 461 ctx->flushSurfaceWrites(dst);
463 return dst; 462 return dst;
464 } 463 }
465 464
OLDNEW
« no previous file with comments | « src/gpu/text/GrStencilAndCoverTextContext.cpp ('k') | tests/PremulAlphaRoundTripTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698