当前位置: 首页 > news >正文

c c也能干大事网站开发设计师必须知道的十个网站

c c也能干大事网站开发,设计师必须知道的十个网站,有了域名怎么建网站,新主题 老版本 wordpress工作中需要对Chromium源码、尤其是源码中图形部分进行深入研究#xff0c;所以借此机会边学习边写文章#xff0c;分享一下我的实时学习研究Chromium源码的由浅入深的过程。 闲言少叙#xff0c;书归正传。 通过命令行启动Chrome浏览器#xff0c;命令及结果如下#xf…工作中需要对Chromium源码、尤其是源码中图形部分进行深入研究所以借此机会边学习边写文章分享一下我的实时学习研究Chromium源码的由浅入深的过程。 闲言少叙书归正传。 通过命令行启动Chrome浏览器命令及结果如下 $ google-chrome-stable MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid0 在浏览器地址栏中输入“chrome://gpu”得到以下结果 第一步工作就是要找到如上所示的信息在Chromium源码中的具体位置。 经过查找定位以上信息对应的代码在Chromium源码目录的content/browser/resources/gpu/info_view.js中如下所示 appendFeatureInfo_(featureInfo, featureStatusList, problemsDiv, problemsList, workaroundsDiv,workaroundsList) {// Feature mapconst featureLabelMap {2d_canvas: Canvas,gpu_compositing: Compositing,webgl: WebGL,multisampling: WebGL multisampling,texture_sharing: Texture Sharing,video_decode: Video Decode,rasterization: Rasterization,opengl: OpenGL,metal: Metal,vulkan: Vulkan,multiple_raster_threads: Multiple Raster Threads,native_gpu_memory_buffers: Native GpuMemoryBuffers,protected_video_decode: Hardware Protected Video Decode,surface_control: Surface Control,vpx_decode: VPx Video Decode,webgl2: WebGL2,canvas_oop_rasterization: Canvas out-of-process rasterization,raw_draw: Raw Draw,video_encode: Video Encode,direct_rendering_display_compositor:Direct Rendering Display Compositor,webgpu: WebGPU,};const statusMap {disabled_software: {label: Software only. Hardware acceleration disabled,class: feature-yellow,},disabled_off: {label: Disabled, class: feature-red},disabled_off_ok: {label: Disabled, class: feature-yellow},unavailable_software: {label: Software only, hardware acceleration unavailable,class: feature-yellow,},unavailable_off: {label: Unavailable, class: feature-red},unavailable_off_ok: {label: Unavailable, class: feature-yellow},enabled_readback: {label: Hardware accelerated but at reduced performance,class: feature-yellow,},enabled_force: {label: Hardware accelerated on all pages,class: feature-green,},enabled: {label: Hardware accelerated, class: feature-green},enabled_on: {label: Enabled, class: feature-green},enabled_force_on: {label: Force enabled, class: feature-green},};// feature status listfeatureStatusList.textContent ;for (const featureName in featureInfo.featureStatus) {const featureStatus featureInfo.featureStatus[featureName];const featureEl document.createElement(li);const nameEl document.createElement(span);if (!featureLabelMap[featureName]) {console.info(Missing featureLabel for, featureName);}nameEl.textContent featureLabelMap[featureName] : ;featureEl.appendChild(nameEl);const statusEl document.createElement(span);const statusInfo statusMap[featureStatus];if (!statusInfo) {console.info(Missing status for , featureStatus);statusEl.textContent Unknown;statusEl.className feature-red;} else {statusEl.textContent statusInfo[label];statusEl.className statusInfo[class];}featureEl.appendChild(statusEl);featureStatusList.appendChild(featureEl);}// problems listif (featureInfo.problems.length) {problemsDiv.hidden false;problemsList.textContent ;for (const problem of featureInfo.problems) {const problemEl this.createProblemEl_(problem);problemsList.appendChild(problemEl);}} else {problemsDiv.hidden true;}// driver bug workarounds listif (featureInfo.workarounds.length) {workaroundsDiv.hidden false;workaroundsList.textContent ;for (const workaround of featureInfo.workarounds) {const workaroundEl document.createElement(li);workaroundEl.textContent workaround;workaroundsList.appendChild(workaroundEl);}} else {workaroundsDiv.hidden true;}} 可以看到上边网页中显示的内容大部分都能对应到代码中的featureLabelMap和statusMap中。比如网页中“Graphics Feature Status”下的“Canvas: Hardware accelerated”、“Compositing: Hardware accelerated”、“OpenGL: Enabled”、“Video Decode: Hardware accelerated”、“Video Encode: Software only. Hardware acceleration disabled”、“Vulkan: Disabled”、“WebGPU: Disabled”等等。
http://www.hkea.cn/news/14576305/

相关文章:

  • 科协科普网站建设中国建设银行天津分行网站
  • 南京网站优化快速排名申请了域名怎么做网站
  • 唐山门户网站建设樱花动漫做网站
  • 那些网站可以做问答中华建设网算什么级别网站
  • 登陆空间商网站wordpress 查询
  • 泉州市网站建设网站建设药店
  • 江苏网站建设联系方式wap建站php源码
  • 江门市智企互联网站建设市场营销策划ppt免费模板
  • 做网站能给公司带来什么好处郑州便宜网站建设费用
  • 网站模板红黑app网站开发定制
  • 网站的页面风格是什么东莞大岭山镇网站建设
  • 网站推广营销深圳宝安快餐服务200便宜
  • 多个域名解析到一个网站设计ui
  • 做电销哪些网站可以找到客户端长丰下塘新农村建设网站
  • 海口建设企业网站中国农村建设投资有限公司网站
  • 成都高端网页设计公司seo公司发展前景
  • 公司建设网站的通知书湖北住房和城乡建设部网站
  • html5网站 源码机械技术支持 东莞网站建设
  • 熊掌号怎么做网站跳转链接苏州做网站公司电话
  • 手机建站最好的网站网站建设运营
  • 北京门户网站设计网站建设搭建
  • 西红门网站建设效果好的魔站建站系统
  • 网站开发加维护需要多少钱如何能让企业做网站的打算
  • 大气网站背景台州永建建设有限公司网站
  • wordpress 还原备份成都网站优化报价
  • 兰州手机网站河田镇建设局网站
  • 网站建设方面的书小工程承包网
  • 专门做dm单的网站网站建设哪些字体没有版权
  • gg服务器租用网站关键词查询爱站网
  • 南京网站开发选南京乐识赞辣条网站建设书