Skip to content

Commit dcc910e

Browse files
Robert LyAndroid (Google) Code Review
authored andcommitted
Merge "docs: fix bug 5878445" into ics-mr1
2 parents eb4f325 + 02c9388 commit dcc910e

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

docs/html/guide/topics/graphics/hardware-accel.jd

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,20 @@ parent.link=index.html
4242
<li><a href="{@docRoot}guide/topics/graphics/opengl.html">OpenGL with the Framework
4343
APIs</a></li>
4444

45-
<li><a href="{@docRoot}guide/topics/renderscript/index.html">RenderScript</a></li>
45+
<li><a href="{@docRoot}guide/topics/renderscript/index.html">Renderscript</a></li>
4646
</ol>
4747
</div>
4848
</div>
4949

5050
<p>Beginning in Android 3.0 (API level 11), the Android 2D rendering pipeline is designed to
5151
better support hardware acceleration. Hardware acceleration carries out all drawing operations
52-
that are performed on a {@link android.view.View}'s canvas using the GPU.</p>
52+
that are performed on a {@link android.view.View}'s canvas using the GPU. Because of the
53+
increased resources required to enable hardware acceleration, your app will consume more RAM.</p>
5354

5455
<p>The easiest way to enable hardware acceleration is to turn it on
5556
globally for your entire application. If your application uses only standard views and {@link
5657
android.graphics.drawable.Drawable}s, turning it on globally should not cause any adverse
57-
effects. However, because hardware acceleration is not supported for all of the 2D drawing
58+
drawing effects. However, because hardware acceleration is not supported for all of the 2D drawing
5859
operations, turning it on might affect some of your applications that use custom views or drawing
5960
calls. Problems usually manifest themselves as invisible elements, exceptions, or wrongly
6061
rendered pixels. To remedy this, Android gives you the option to enable or disable hardware

docs/html/guide/topics/manifest/activity-element.jd

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ attribute).
307307
<dd>Whether or not an existing instance of the activity should be shut down
308308
(finished) whenever the user again launches its task (chooses the task on the
309309
home screen) &mdash; "{@code true}" if it should be shut down, and "{@code false}"
310-
if not. The default value is "{@code false}".
310+
if not. The default value is "{@code false}".
311311

312312
<p>
313313
If this attribute and
@@ -321,13 +321,15 @@ activity is ignored. The activity is not re-parented, but destroyed.
321321
Activity &mdash; "{@code true}" if it should be enabled, and "{@code false}" if
322322
not. The default value is "{@code false}".
323323

324+
324325
<p>Starting from Android 3.0, a hardware-accelerated OpenGL renderer is
325326
available to applications, to improve performance for many common 2D graphics
326327
operations. When the hardware-accelerated renderer is enabled, most operations
327328
in Canvas, Paint, Xfermode, ColorFilter, Shader, and Camera are accelerated.
328329
This results in smoother animations, smoother scrolling, and improved
329330
responsiveness overall, even for applications that do not explicitly make use
330-
the framework's OpenGL libraries. </p>
331+
the framework's OpenGL libraries. Because of the increased resources required to
332+
enable hardware acceleration, your app will consume more RAM.</p>
331333

332334
<p>Note that not all of the OpenGL 2D operations are accelerated. If you enable
333335
the hardware-accelerated renderer, test your application to ensure that it can
@@ -587,9 +589,9 @@ Permissions</a>.
587589
</p></dd>
588590

589591
<dt><a name="proc"></a>{@code android:process}</dt>
590-
<dd>The name of the process in which the activity should run. Normally,
592+
<dd>The name of the process in which the activity should run. Normally,
591593
all components of an application run in the default process created for the
592-
application. It has the same name as the application package. The <code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> element's
594+
application. It has the same name as the application package. The <code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> element's
593595
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#proc">process</a></code>
594596
attribute can set a different default for all components. But each component
595597
can override the default, allowing you to spread your application across
@@ -706,7 +708,7 @@ activity started for the first time.
706708
A "{@code true}" setting ensures that the activity can be restarted in the
707709
absence of retained state. For example, the activity that displays the
708710
home screen uses this setting to make sure that it does not get removed if it
709-
crashes for some reason.
711+
crashes for some reason.
710712
</p></dd>
711713

712714
<dt><a name="aff"></a>{@code android:taskAffinity}</dt>

0 commit comments

Comments
 (0)