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

Side by Side Diff: src/gpu/SkGr.cpp

Issue 1397123002: Move functions from SkGr to SkGrPriv.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 9th time's a charm? Created 5 years, 2 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/SkGpuDevice.cpp ('k') | src/gpu/SkGrPriv.h » ('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 2010 Google Inc. 2 * Copyright 2010 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 "GrTextureMaker.h" 8 #include "GrTextureMaker.h"
9 9
10 #include "SkGr.h" 10 #include "SkGr.h"
11 11
12 #include "GrCaps.h" 12 #include "GrCaps.h"
13 #include "GrContext.h"
13 #include "GrDrawContext.h" 14 #include "GrDrawContext.h"
14 #include "GrXferProcessor.h" 15 #include "GrXferProcessor.h"
15 #include "GrYUVProvider.h" 16 #include "GrYUVProvider.h"
16 17
17 #include "SkColorFilter.h" 18 #include "SkColorFilter.h"
18 #include "SkConfig8888.h" 19 #include "SkConfig8888.h"
19 #include "SkCanvas.h" 20 #include "SkCanvas.h"
20 #include "SkData.h" 21 #include "SkData.h"
21 #include "SkErrorInternals.h" 22 #include "SkErrorInternals.h"
22 #include "SkGrPixelRef.h" 23 #include "SkGrPixelRef.h"
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 SkBitmap stretchedBmp = stretch_on_cpu(bitmap, stretch); 974 SkBitmap stretchedBmp = stretch_on_cpu(bitmap, stretch);
974 return create_unstretched_bitmap_texture(ctx, stretchedBmp, GrUniqueKey( )); 975 return create_unstretched_bitmap_texture(ctx, stretchedBmp, GrUniqueKey( ));
975 } else { 976 } else {
976 SkAutoTUnref<GrTexture> unstretched(this->onRefUnstretchedTexture(ctx)); 977 SkAutoTUnref<GrTexture> unstretched(this->onRefUnstretchedTexture(ctx));
977 if (!unstretched) { 978 if (!unstretched) {
978 return nullptr; 979 return nullptr;
979 } 980 }
980 return stretch_texture(unstretched, stretch, nullptr, GrUniqueKey()); 981 return stretch_texture(unstretched, stretch, nullptr, GrUniqueKey());
981 } 982 }
982 } 983 }
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/SkGrPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698