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

Side by Side Diff: tools/sk_tool_utils.h

Issue 1298763002: Move normal map creation methods to sk_tools (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup 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 | « gm/lightingshader.cpp ('k') | tools/sk_tool_utils.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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef sk_tool_utils_DEFINED 8 #ifndef sk_tool_utils_DEFINED
9 #define sk_tool_utils_DEFINED 9 #define sk_tool_utils_DEFINED
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 size_t rowBytes) override { 112 size_t rowBytes) override {
113 return SkImageEncoder::EncodeData(info, pixels, rowBytes, 113 return SkImageEncoder::EncodeData(info, pixels, rowBytes,
114 SkImageEncoder::kPNG_Type, 100); 114 SkImageEncoder::kPNG_Type, 100);
115 } 115 }
116 }; 116 };
117 117
118 // A helper for inserting a drawtext call into a SkTextBlobBuilder 118 // A helper for inserting a drawtext call into a SkTextBlobBuilder
119 void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const Sk Paint& origPaint, 119 void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const Sk Paint& origPaint,
120 SkScalar x, SkScalar y); 120 SkScalar x, SkScalar y);
121 121
122 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst);
123
124 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst);
125
126 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst);
127
122 } // namespace sk_tool_utils 128 } // namespace sk_tool_utils
123 129
124 #endif // sk_tool_utils_DEFINED 130 #endif // sk_tool_utils_DEFINED
OLDNEW
« no previous file with comments | « gm/lightingshader.cpp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698