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

Side by Side Diff: ui/ozone/platform/cast/surface_factory_cast.cc

Issue 1432963003: [Ozone] Extends the lifetime of VaapiWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « content/common/gpu/media/vaapi_wrapper.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/cast/surface_factory_cast.h" 5 #include "ui/ozone/platform/cast/surface_factory_cast.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <EGL/egl.h> 8 #include <EGL/egl.h>
9 9
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 void* GetEGLClientBuffer() const override { 188 void* GetEGLClientBuffer() const override {
189 // TODO(halliwell): try to implement this through CastEglPlatform. 189 // TODO(halliwell): try to implement this through CastEglPlatform.
190 return nullptr; 190 return nullptr;
191 } 191 }
192 int GetDmaBufFd() const override { return -1; } 192 int GetDmaBufFd() const override { return -1; }
193 int GetDmaBufPitch() const override { return 0; } 193 int GetDmaBufPitch() const override { return 0; }
194 gfx::BufferFormat GetBufferFormat() const override { 194 gfx::BufferFormat GetBufferFormat() const override {
195 return gfx::BufferFormat::BGRA_8888; 195 return gfx::BufferFormat::BGRA_8888;
196 } 196 }
197 gfx::Size GetBufferSize() const override { return gfx::Size(); }
198
197 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 199 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
198 int plane_z_order, 200 int plane_z_order,
199 gfx::OverlayTransform plane_transform, 201 gfx::OverlayTransform plane_transform,
200 const gfx::Rect& display_bounds, 202 const gfx::Rect& display_bounds,
201 const gfx::RectF& crop_rect) override { 203 const gfx::RectF& crop_rect) override {
202 return true; 204 return true;
203 } 205 }
204 void SetProcessingCallback( 206 void SetProcessingCallback(
205 const ProcessingCallback& processing_callback) override {} 207 const ProcessingCallback& processing_callback) override {}
206 scoped_refptr<NativePixmap> GetProcessedPixmap( 208 scoped_refptr<NativePixmap> GetProcessedPixmap(
(...skipping 30 matching lines...) Expand all
237 return false; 239 return false;
238 } 240 }
239 241
240 set_gl_get_proc_address.Run(gl_proc); 242 set_gl_get_proc_address.Run(gl_proc);
241 add_gl_library.Run(lib_egl); 243 add_gl_library.Run(lib_egl);
242 add_gl_library.Run(lib_gles2); 244 add_gl_library.Run(lib_gles2);
243 return true; 245 return true;
244 } 246 }
245 247
246 } // namespace ui 248 } // namespace ui
OLDNEW
« no previous file with comments | « content/common/gpu/media/vaapi_wrapper.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698