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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp

Issue 2809983002: Fix g_k_* symbols after blink rename. (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp b/third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp
index 46da3a2a937a14d1b47d03f3a3a1aea25636e9ea..b6aee9052c5f1b577db2d49e271484e8e5f3f098 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp
@@ -114,7 +114,7 @@ void BuildSourceGraphic(FilterEffect* source_graphic,
source_graphic->OperatingColorSpace());
}
-static float g_k_max_mask_buffer_size =
+static const float kMaxMaskBufferSize =
50.f * 1024.f * 1024.f / 4.f; // 50MB / 4 bytes per pixel
sk_sp<SkImageFilter> BuildBoxReflectFilter(const BoxReflection& reflection,
@@ -128,7 +128,7 @@ sk_sp<SkImageFilter> BuildBoxReflectFilter(const BoxReflection& reflection,
const SkRect cull_rect = mask_record->cullRect();
if (static_cast<float>(cull_rect.width()) *
static_cast<float>(cull_rect.height()) <
- g_k_max_mask_buffer_size) {
+ kMaxMaskBufferSize) {
bitmap.allocPixels(
SkImageInfo::MakeN32Premul(cull_rect.width(), cull_rect.height()));
SkiaPaintCanvas canvas(bitmap);

Powered by Google App Engine
This is Rietveld 408576698