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

Side by Side Diff: src/core/SkBitmapProcShader.cpp

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! Created 5 years, 4 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/core/SkBitmapProcShader.h ('k') | src/core/SkBitmapProcState.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
2 /* 1 /*
3 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
7
8 #include "SkBitmapProcShader.h"
9 #include "SkBitmapProcState.h"
8 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
11 #include "SkErrorInternals.h"
12 #include "SkPixelRef.h"
9 #include "SkReadBuffer.h" 13 #include "SkReadBuffer.h"
10 #include "SkWriteBuffer.h" 14 #include "SkWriteBuffer.h"
11 #include "SkPixelRef.h"
12 #include "SkErrorInternals.h"
13 #include "SkBitmapProcShader.h"
14 15
15 #if SK_SUPPORT_GPU 16 #if SK_SUPPORT_GPU
17 #include "effects/GrBicubicEffect.h"
16 #include "effects/GrSimpleTextureEffect.h" 18 #include "effects/GrSimpleTextureEffect.h"
17 #include "effects/GrBicubicEffect.h"
18 #endif 19 #endif
19 20
20 SkBitmapProcShader::SkBitmapProcShader(const SkBitmap& src, TileMode tmx, TileMo de tmy, 21 SkBitmapProcShader::SkBitmapProcShader(const SkBitmap& src, TileMode tmx, TileMo de tmy,
21 const SkMatrix* localMatrix) 22 const SkMatrix* localMatrix)
22 : INHERITED(localMatrix) { 23 : INHERITED(localMatrix) {
23 fRawBitmap = src; 24 fRawBitmap = src;
24 fTileModeX = (uint8_t)tmx; 25 fTileModeX = (uint8_t)tmx;
25 fTileModeY = (uint8_t)tmy; 26 fTileModeY = (uint8_t)tmy;
26 } 27 }
27 28
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 #else 412 #else
412 413
413 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S kMatrix&, 414 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S kMatrix&,
414 const SkMatrix*, GrColor*, GrProces sorDataManager*, 415 const SkMatrix*, GrColor*, GrProces sorDataManager*,
415 GrFragmentProcessor**) const { 416 GrFragmentProcessor**) const {
416 SkDEBUGFAIL("Should not call in GPU-less build"); 417 SkDEBUGFAIL("Should not call in GPU-less build");
417 return false; 418 return false;
418 } 419 }
419 420
420 #endif 421 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcShader.h ('k') | src/core/SkBitmapProcState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698