Skip to content

Commit

Permalink
Skia Cleanup (flutter#6786)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetf authored Nov 7, 2018
1 parent 547b858 commit 94dd716
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion flow/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ source_set("flow") {
"$flutter_root/fml",
"$flutter_root/synchronization",
"//third_party/skia",
"//third_party/skia:gpu",
]

if (is_fuchsia) {
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ source_set("ui") {
"//third_party/dart/runtime/bin:dart_io_api",
"//third_party/rapidjson",
"//third_party/skia",
"//third_party/skia:effects",
"//third_party/skia:gpu",
"//third_party/tonic",
]
if (is_fuchsia) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/painting/codec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ sk_sp<SkImage> MultiFrameCodec::GetNextFrameImage(
SkCodec::Options options;
options.fFrameIndex = nextFrameIndex_;
const int requiredFrame = frameInfos_[nextFrameIndex_].fRequiredFrame;
if (requiredFrame != SkCodec::kNone) {
if (requiredFrame != SkCodec::kNoFrame) {
const SkBitmap* requiredBitmap =
frameBitmaps_[requiredFrame]->bitmap_.get();
if (requiredBitmap == nullptr) {
Expand Down
1 change: 0 additions & 1 deletion shell/common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ source_set("common") {
"$flutter_root/synchronization",
"//third_party/dart/runtime:dart_api",
"//third_party/skia",
"//third_party/skia:gpu",
]

public_deps = [
Expand Down
4 changes: 2 additions & 2 deletions shell/gpu/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ source_set("gpu_surface_gl") {
"$gpu_dir/gpu_surface_gl.h",
]

deps = gpu_common_deps + [ "//third_party/skia:gpu" ]
deps = gpu_common_deps + [ "//third_party/skia" ]
}

source_set("gpu_surface_vulkan") {
Expand All @@ -40,7 +40,7 @@ source_set("gpu_surface_vulkan") {
]

deps = gpu_common_deps + [
"//third_party/skia:gpu",
"//third_party/skia",
"$flutter_root/vulkan",
]
}
1 change: 0 additions & 1 deletion shell/platform/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ shared_library("flutter_shell_native") {
"$flutter_root/runtime",
"$flutter_root/shell/common",
"//third_party/skia",
"//third_party/skia:gpu",
]
if (flutter_runtime_mode == "debug" ||
flutter_runtime_mode == "dynamic_profile" ||
Expand Down
1 change: 0 additions & 1 deletion shell/platform/darwin/ios/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ shared_library("create_flutter_framework_dylib") {
"$flutter_root/shell/common",
"$flutter_root/shell/platform/darwin/common",
"//third_party/skia",
"//third_party/skia:gpu",
]
if (flutter_runtime_mode == "debug" ||
flutter_runtime_mode == "dynamic_profile" ||
Expand Down
1 change: 0 additions & 1 deletion shell/platform/embedder/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ source_set("embedder") {
"//third_party/dart/runtime:libdart_jit",
"//third_party/dart/runtime/bin:dart_io_api",
"//third_party/skia",
"//third_party/skia:gpu",
"//third_party/tonic",
]

Expand Down
2 changes: 1 addition & 1 deletion third_party/txt/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ source_set("txt") {
]

deps = [
"//third_party/skia:effects",
"//third_party/skia",
]

if (is_mac || is_ios) {
Expand Down
2 changes: 0 additions & 2 deletions vulkan/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ source_set("vulkan") {
deps = [
"$flutter_root/fml",
"//third_party/skia",
"//third_party/skia:gpu",
]

public_configs = [
":vulkan_config",
"$flutter_root:config",
"//third_party/skia:skia_private",
]
}

0 comments on commit 94dd716

Please sign in to comment.