Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
00c28704
Commit
00c28704
authored
Nov 21, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Nov 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nativewindowpriv: GRALLOC_USAGE_EXTERNAL_DISP only for hw
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
8ce86469
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/video_output/android/nativewindowpriv.c
modules/video_output/android/nativewindowpriv.c
+6
-4
No files found.
modules/video_output/android/nativewindowpriv.c
View file @
00c28704
...
...
@@ -151,13 +151,15 @@ int ANativeWindowPriv_setup( native_window_priv *priv, int w, int h, int hal_for
LOGD
(
"setup: %p, %d, %d, %X, %X
\n
"
,
priv
->
anw
,
w
,
h
,
hal_format
,
hw_usage
);
if
(
is_hw
)
if
(
is_hw
)
{
priv
->
usage
=
hw_usage
|
GRALLOC_USAGE_HW_RENDER
|
GRALLOC_USAGE_HW_TEXTURE
;
else
priv
->
usage
=
GRALLOC_USAGE_SW_READ_NEVER
|
GRALLOC_USAGE_SW_WRITE_OFTEN
;
#if ANDROID_HC_OR_LATER
priv
->
usage
|=
GRALLOC_USAGE_EXTERNAL_DISP
;
priv
->
usage
|=
GRALLOC_USAGE_EXTERNAL_DISP
;
#endif
}
else
priv
->
usage
=
GRALLOC_USAGE_SW_READ_NEVER
|
GRALLOC_USAGE_SW_WRITE_OFTEN
;
err
=
native_window_set_usage
(
priv
->
anw
,
priv
->
usage
);
CHECK_ERR
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment