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

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: Additional change for working around Chromium. 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
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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 #else 443 #else
443 444
444 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S kMatrix&, 445 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S kMatrix&,
445 const SkMatrix*, GrColor*, GrProces sorDataManager*, 446 const SkMatrix*, GrColor*, GrProces sorDataManager*,
446 GrFragmentProcessor**) const { 447 GrFragmentProcessor**) const {
447 SkDEBUGFAIL("Should not call in GPU-less build"); 448 SkDEBUGFAIL("Should not call in GPU-less build");
448 return false; 449 return false;
449 } 450 }
450 451
451 #endif 452 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698