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

Unified Diff: chromecast/renderer/media/hole_frame_factory.cc

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address alokp@ comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/renderer/media/hole_frame_factory.h ('k') | chromecast/renderer/media/media_pipeline_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/media/hole_frame_factory.cc
diff --git a/chromecast/media/cma/filters/hole_frame_factory.cc b/chromecast/renderer/media/hole_frame_factory.cc
similarity index 87%
rename from chromecast/media/cma/filters/hole_frame_factory.cc
rename to chromecast/renderer/media/hole_frame_factory.cc
index 4d4b33380b0408dc7cdb70bc6a7ac05bfc534528..60124393c5bb5daf89be9b9762356c8b80cd28f7 100644
--- a/chromecast/media/cma/filters/hole_frame_factory.cc
+++ b/chromecast/renderer/media/hole_frame_factory.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromecast/media/cma/filters/hole_frame_factory.h"
+#include "chromecast/renderer/media/hole_frame_factory.h"
#include "base/bind.h"
#include "base/location.h"
@@ -16,18 +16,15 @@ namespace media {
HoleFrameFactory::HoleFrameFactory(
const scoped_refptr<::media::GpuVideoAcceleratorFactories>& gpu_factories)
- : gpu_factories_(gpu_factories),
- texture_(0),
- image_id_(0),
- sync_point_(0) {
+ : gpu_factories_(gpu_factories), texture_(0), image_id_(0), sync_point_(0) {
if (gpu_factories_) {
gpu::gles2::GLES2Interface* gl = gpu_factories_->GetGLES2Interface();
CHECK(gl);
gl->GenTextures(1, &texture_);
gl->BindTexture(GL_TEXTURE_2D, texture_);
- image_id_ = gl->CreateGpuMemoryBufferImageCHROMIUM(1, 1, GL_RGBA,
- GL_SCANOUT_CHROMIUM);
+ image_id_ = gl->CreateGpuMemoryBufferImageCHROMIUM(
+ 1, 1, GL_RGBA, GL_SCANOUT_CHROMIUM);
gl->BindTexImage2DCHROMIUM(GL_TEXTURE_2D, image_id_);
gl->GenMailboxCHROMIUM(mailbox_.name);
« no previous file with comments | « chromecast/renderer/media/hole_frame_factory.h ('k') | chromecast/renderer/media/media_pipeline_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698