Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Issue 1025453002: Implement common Ozone interface for Chromecast. (Closed)

Created:
5 years, 9 months ago by halliwell
Modified:
5 years, 8 months ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement common Ozone interface for Chromecast. This is a refactoring of our existing Ozone implementations to extract the common parts: implementing the single-full-screen-window assumption, stubbing out the bits of Ozone we don't use, and the GPU resource relinquish logic. Implementing Ozone for new hardware is now a lot simpler - just implement the ChromecastEglPlatform interface. For now, each platform still has to define the Ozone constructor function themselves, supplying an instance of the ChromecastEglPlatform subclass. BUG= Committed: https://crrev.com/d086430fe91aa75fd0cb6865f6cfb847b13719d4 Cr-Commit-Position: refs/heads/master@{#322595}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address lcwu comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+693 lines, -0 lines) Patch
M chromecast/chromecast.gyp View 1 2 chunks +17 lines, -0 lines 0 comments Download
A chromecast/ozone/cast_egl_platform.h View 1 1 chunk +69 lines, -0 lines 0 comments Download
A chromecast/ozone/gpu_platform_support_cast.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A chromecast/ozone/gpu_platform_support_cast.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
A chromecast/ozone/ozone_platform_cast.h View 1 1 chunk +58 lines, -0 lines 0 comments Download
A chromecast/ozone/ozone_platform_cast.cc View 1 1 chunk +83 lines, -0 lines 0 comments Download
A chromecast/ozone/platform_window_cast.h View 1 1 chunk +48 lines, -0 lines 0 comments Download
A chromecast/ozone/platform_window_cast.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
A chromecast/ozone/surface_factory_cast.h View 1 1 chunk +74 lines, -0 lines 0 comments Download
A chromecast/ozone/surface_factory_cast.cc View 1 1 chunk +176 lines, -0 lines 0 comments Download
A chromecast/ozone/surface_ozone_egl_cast.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A chromecast/ozone/surface_ozone_egl_cast.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
halliwell
5 years, 9 months ago (2015-03-19 20:47:05 UTC) #2
derekjchow1
https://codereview.chromium.org/1025453002/diff/1/chromecast/ozone/surface_factory_chromecast.cc File chromecast/ozone/surface_factory_chromecast.cc (right): https://codereview.chromium.org/1025453002/diff/1/chromecast/ozone/surface_factory_chromecast.cc#newcode70 chromecast/ozone/surface_factory_chromecast.cc:70: DestroyDisplayTypeAndWindow(); Would it be reasonable to call ShutdownHardware here? ...
5 years, 9 months ago (2015-03-19 21:28:02 UTC) #3
halliwell
https://codereview.chromium.org/1025453002/diff/1/chromecast/ozone/surface_factory_chromecast.cc File chromecast/ozone/surface_factory_chromecast.cc (right): https://codereview.chromium.org/1025453002/diff/1/chromecast/ozone/surface_factory_chromecast.cc#newcode70 chromecast/ozone/surface_factory_chromecast.cc:70: DestroyDisplayTypeAndWindow(); On 2015/03/19 21:28:02, derekjchow1 wrote: > Would it ...
5 years, 9 months ago (2015-03-19 22:21:59 UTC) #4
lcwu1
https://codereview.chromium.org/1025453002/diff/1/chromecast/chromecast.gyp File chromecast/chromecast.gyp (right): https://codereview.chromium.org/1025453002/diff/1/chromecast/chromecast.gyp#newcode303 chromecast/chromecast.gyp:303: 'cast_ozone', This new dependency should be in 'cast_shell_core' instead ...
5 years, 9 months ago (2015-03-27 00:51:43 UTC) #6
halliwell
https://codereview.chromium.org/1025453002/diff/1/chromecast/ozone/chromecast_egl_platform.h File chromecast/ozone/chromecast_egl_platform.h (right): https://codereview.chromium.org/1025453002/diff/1/chromecast/ozone/chromecast_egl_platform.h#newcode20 chromecast/ozone/chromecast_egl_platform.h:20: class ChromecastEglPlatform { On 2015/03/27 00:51:42, lcwu1 wrote: > ...
5 years, 9 months ago (2015-03-27 01:45:03 UTC) #7
lcwu1
lgtm
5 years, 8 months ago (2015-03-27 16:30:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025453002/20001
5 years, 8 months ago (2015-03-27 16:31:51 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-03-27 16:54:14 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-03-27 16:55:16 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d086430fe91aa75fd0cb6865f6cfb847b13719d4
Cr-Commit-Position: refs/heads/master@{#322595}

Powered by Google App Engine
This is Rietveld 408576698