Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
ba2fe445
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ba2fe445
编写于
7月 27, 2015
作者:
C
Chinmay Garde
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid manually setting up in-process GL bindings for Skia
上级
cb75ca64
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
45 addition
and
912 deletion
+45
-912
skia/BUILD.gn
skia/BUILD.gn
+24
-0
sky/engine/BUILD.gn
sky/engine/BUILD.gn
+1
-2
sky/engine/core/css/parser/MediaQueryTokenizer.cpp
sky/engine/core/css/parser/MediaQueryTokenizer.cpp
+1
-1
sky/shell/BUILD.gn
sky/shell/BUILD.gn
+15
-14
sky/shell/gpu/ganesh_context.cc
sky/shell/gpu/ganesh_context.cc
+1
-1
ui/gl/gl_bindings_skia_in_process.cc
ui/gl/gl_bindings_skia_in_process.cc
+2
-893
ui/gl/gl_bindings_skia_in_process.h
ui/gl/gl_bindings_skia_in_process.h
+1
-1
未找到文件。
skia/BUILD.gn
浏览文件 @
ba2fe445
...
...
@@ -368,6 +368,30 @@ component("skia") {
"//third_party/skia/src/fonts/SkGScalerContext.h",
]
if (is_ios || is_mac || is_android) {
sources -= [
"//third_party/skia/src/gpu/gl/GrGLCreateNativeInterface_none.cpp"
]
set_sources_assignment_filter([])
if (is_ios) {
sources += [
"//third_party/skia/src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp"
]
} else if (is_mac) {
sources += [
"//third_party/skia/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp"
]
} else if (is_android) {
sources += [
"//third_party/skia/src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp"
]
}
set_sources_assignment_filter(sources_assignment_filter)
}
if (is_win) {
sources -= [
# Keeping _win.cpp
...
...
sky/engine/BUILD.gn
浏览文件 @
ba2fe445
...
...
@@ -32,8 +32,7 @@ config("inside_blink") {
config("config") {
include_dirs = [
".",
"$root_build_dir",
"$root_gen_dir/sky", # Deprecated, remove.
"$root_out_dir",
]
cflags = []
...
...
sky/engine/core/css/parser/MediaQueryTokenizer.cpp
浏览文件 @
ba2fe445
...
...
@@ -5,7 +5,7 @@
#include "sky/engine/core/css/parser/MediaQueryTokenizer.h"
namespace
blink
{
#include "core/MediaQueryTokenizerCodepoints.cpp"
#include "
gen/sky/
core/MediaQueryTokenizerCodepoints.cpp"
}
#include "sky/engine/core/css/parser/MediaQueryInputStream.h"
...
...
sky/shell/BUILD.gn
浏览文件 @
ba2fe445
...
...
@@ -96,6 +96,10 @@ if (is_android) {
":jni_headers",
":common",
]
ldflags = [
"-lGLESv2",
"-lEGL",
]
}
android_library("java") {
...
...
@@ -159,7 +163,6 @@ if (is_android) {
"//base:base_java",
]
}
} else if (is_ios) {
import("//build/config/ios/rules.gni")
import("//build/config/ios/ios_sdk.gni")
...
...
@@ -198,9 +201,9 @@ if (is_android) {
set_sources_assignment_filter(sources_assignment_filter)
deps = common_deps + [
":common",
"//sky/services/ns_net",
]
":common",
"//sky/services/ns_net",
]
}
deps = [
...
...
@@ -221,9 +224,9 @@ if (is_android) {
]
deps = common_deps + [
":common",
"//sky/services/testing:interfaces",
]
":common",
"//sky/services/testing:interfaces",
]
}
} else if (is_mac) {
import("//build/config/mac/rules.gni")
...
...
@@ -236,9 +239,7 @@ if (is_android) {
# entitlements_path = ""
# code_signing_identity = ""
xibs = [
"mac/sky_mac.xib"
]
xibs = [ "mac/sky_mac.xib" ]
resource_copy_mac("sky_resources") {
resources = [ "//third_party/icu/android/icudtl.dat" ]
...
...
@@ -264,10 +265,10 @@ if (is_android) {
]
deps = common_deps + [
":common",
"//sky/services/ns_net",
"//sky/services/testing:interfaces",
]
":common",
"//sky/services/ns_net",
"//sky/services/testing:interfaces",
]
}
deps = [
...
...
sky/shell/gpu/ganesh_context.cc
浏览文件 @
ba2fe445
...
...
@@ -24,7 +24,7 @@ const size_t kMaxGaneshResourceCacheBytes = 96 * 1024 * 1024;
GaneshContext
::
GaneshContext
(
scoped_refptr
<
gfx
::
GLContext
>
gl_context
)
:
gl_context_
(
gl_context
)
{
skia
::
RefPtr
<
GrGLInterface
>
interface
=
skia
::
RefPtr
<
const
GrGLInterface
>
interface
=
skia
::
AdoptRef
(
gfx
::
CreateInProcessSkiaGLBinding
());
DCHECK
(
interface
);
...
...
ui/gl/gl_bindings_skia_in_process.cc
浏览文件 @
ba2fe445
此差异已折叠。
点击以展开。
ui/gl/gl_bindings_skia_in_process.h
浏览文件 @
ba2fe445
...
...
@@ -13,7 +13,7 @@ namespace gfx {
// The GPU back-end for skia requires pointers to GL functions. This function
// creates a binding for skia-gpu to the in-process GL
GL_EXPORT
GrGLInterface
*
CreateInProcessSkiaGLBinding
();
GL_EXPORT
const
GrGLInterface
*
CreateInProcessSkiaGLBinding
();
}
// namespace gfx
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录