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

Unified Diff: gm/lightingshader2.cpp

Issue 2220603002: rename FoceCopyMode to SkCopyPixelMode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: manual rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/lightingshader.cpp ('k') | gm/lightingshaderbevel.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/lightingshader2.cpp
diff --git a/gm/lightingshader2.cpp b/gm/lightingshader2.cpp
index 9283449e2ccd020c8b4bf4957761591a373f287b..5e0d19b661237784ca7258df78e467094cacb19d 100644
--- a/gm/lightingshader2.cpp
+++ b/gm/lightingshader2.cpp
@@ -6,8 +6,6 @@
*/
#include "gm.h"
-
-#include "SkBitmapProcShader.h"
#include "SkLightingShader.h"
#include "SkNormalSource.h"
#include "SkPoint3.h"
@@ -60,20 +58,21 @@ protected:
sk_tool_utils::color_to_565(0x0),
sk_tool_utils::color_to_565(0xFF804020),
8);
- fOpaqueDiffuse = SkMakeBitmapShader(opaqueDiffuseMap, SkShader::kClamp_TileMode,
- SkShader::kClamp_TileMode, &matrix, nullptr);
+ fOpaqueDiffuse = SkShader::MakeBitmapShader(opaqueDiffuseMap, SkShader::kClamp_TileMode,
+ SkShader::kClamp_TileMode, &matrix);
SkBitmap translucentDiffuseMap = sk_tool_utils::create_checkerboard_bitmap(
kTexSize, kTexSize,
SkColorSetARGB(0x55, 0x00, 0x00, 0x00),
SkColorSetARGB(0x55, 0x80, 0x40, 0x20),
8);
- fTranslucentDiffuse = SkMakeBitmapShader(translucentDiffuseMap, SkShader::kClamp_TileMode,
- SkShader::kClamp_TileMode, &matrix, nullptr);
+ fTranslucentDiffuse = SkShader::MakeBitmapShader(translucentDiffuseMap,
+ SkShader::kClamp_TileMode,
+ SkShader::kClamp_TileMode, &matrix);
SkBitmap normalMap = make_frustum_normalmap(kTexSize);
- fNormalMapShader = SkMakeBitmapShader(normalMap, SkShader::kClamp_TileMode,
- SkShader::kClamp_TileMode, &matrix, nullptr);
+ fNormalMapShader = SkShader::MakeBitmapShader(normalMap, SkShader::kClamp_TileMode,
+ SkShader::kClamp_TileMode, &matrix);
}
« no previous file with comments | « gm/lightingshader.cpp ('k') | gm/lightingshaderbevel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698