aboutsummaryrefslogtreecommitdiff
path: root/files/ru
diff options
context:
space:
mode:
authorMikhail Prokudin <39721766+mirexdoors@users.noreply.github.com>2021-03-22 11:43:09 +0700
committerGitHub <noreply@github.com>2021-03-22 11:43:09 +0700
commitb3286b12e22623fed038ceff6356d48e07b6d917 (patch)
tree0e92d4227989e54a6a873e0547918d4b74334165 /files/ru
parent04578e0901bebe2a107b5ca4776ebb708d88d714 (diff)
downloadtranslated-content-b3286b12e22623fed038ceff6356d48e07b6d917.tar.gz
translated-content-b3286b12e22623fed038ceff6356d48e07b6d917.tar.bz2
translated-content-b3286b12e22623fed038ceff6356d48e07b6d917.zip
add ru translate for transfercontroltooffscreen page (#208)
* add ru translate for transfercontroltooffscreen page * fix 'frame' translation * Update files/ru/web/api/htmlcanvaselement/transfercontroltooffscreen/index.html Co-authored-by: Alexander Myshov <myshov@users.noreply.github.com> * Update files/ru/web/api/htmlcanvaselement/transfercontroltooffscreen/index.html Co-authored-by: Alexander Myshov <myshov@users.noreply.github.com>
Diffstat (limited to 'files/ru')
-rw-r--r--files/ru/web/api/htmlcanvaselement/transfercontroltooffscreen/index.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/files/ru/web/api/htmlcanvaselement/transfercontroltooffscreen/index.html b/files/ru/web/api/htmlcanvaselement/transfercontroltooffscreen/index.html
new file mode 100644
index 0000000000..4118d5a5b6
--- /dev/null
+++ b/files/ru/web/api/htmlcanvaselement/transfercontroltooffscreen/index.html
@@ -0,0 +1,67 @@
+---
+title: HTMLCanvasElement.transferControlToOffscreen()
+slug: Web/API/HTMLCanvasElement/transferControlToOffscreen
+translation_of: Web/API/HTMLCanvasElement/transferControlToOffscreen
+tags:
+- API
+- Experimental
+- HTMLCanvasElement
+- Method
+- OffscreenCanvas
+- Reference
+---
+<div>{{APIRef("Canvas API")}} {{SeeCompatTable}}</div>
+
+<p><code><strong>HTMLCanvasElement</strong></code><strong><code>.transferControlToOffscreen()</code></strong>
+ передаёт управление объекту {{domxref("OffscreenCanvas")}}, который может использоваться либо в основном потоке, либо в {{domxref("Worker")}}.</p>
+
+<h2 id="Syntax">Синтаксис</h2>
+
+<pre
+ class="brush: js">OffscreenCanvas HTMLCanvasElement.transferControlToOffscreen()</pre>
+
+<h3 id="Return_value">Возвращаемое значение</h3>
+
+<p>Объект {{domxref("OffscreenCanvas")}}.</p>
+
+<h2 id="Examples">Примеры</h2>
+
+<pre class="brush: js">var htmlCanvas = document.createElement('canvas');
+var offscreen = htmlCanvas.transferControlToOffscreen();
+var gl = offscreen.getContext('webgl');
+
+// ... отрисовка с помощью gl контекста ...
+
+// Возвращаем кадры в исходный HTMLCanvasElement
+gl.commit();
+</pre>
+
+<h2 id="Specifications">Спецификации</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Спецификация</th>
+ <th scope="col">Статус</th>
+ <th scope="col">Комментарий</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', "canvas.html#dom-canvas-transfercontroltooffscreen",
+ "HTMLCanvasElement.transferControlToOffscreen()")}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Поддержка браузерами</h2>
+
+<p>{{Compat("api.HTMLCanvasElement.transferControlToOffscreen")}}</p>
+
+<h2 id="See_also">Смотрите также</h2>
+
+<ul>
+ <li>Интерфейс, определяющий метод: {{domxref("HTMLCanvasElement")}}</li>
+ <li>{{domxref("OffscreenCanvas")}}</li>
+ <li>{{domxref("WebGLRenderingContext.commit()")}}</li>
+</ul>