Skip to content

Commit

Permalink
[Chromecast] Add API to set and clear image on video plane
Browse files Browse the repository at this point in the history
This allows displaying higher-resolution imagery than the current
graphics back buffer.

Bug: 65155280
Change-Id: I1ed30b7fb16926bbfa5269d9848c7a0327658241
Reviewed-on: https://chromium-review.googlesource.com/641394
Reviewed-by: Sergey Volk <servolk@chromium.org>
Commit-Queue: Luke Halliwell <halliwell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#498549}
  • Loading branch information
Luke Halliwell authored and Commit Bot committed Aug 30, 2017
1 parent e0ff4b5 commit 1f4c122
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chromecast/public/cast_media_shlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ class CHROMECAST_EXPORT CastMediaShlib {
static void SetPostProcessorConfig(const std::string& name,
const std::string& config)
__attribute__((__weak__));

// Only used on Chromecast: set and clear an image on the video plane.
// Image data is 8-bit ARGB format; |data| buffer byte length must be
// |width|*|height|*4. Returns whether the image could be successfully set.
static bool SetVideoPlaneImage(int width, int height, const uint8_t* data)
__attribute__((__weak__));
static void ClearVideoPlaneImage() __attribute__((__weak__));
};

} // namespace media
Expand Down

0 comments on commit 1f4c122

Please sign in to comment.