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

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

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions 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 | « ui/ozone/demo/surfaceless_gl_renderer.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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 int GetDmaBufFd() const override { return -1; } 230 int GetDmaBufFd() const override { return -1; }
231 int GetDmaBufPitch() const override { return 0; } 231 int GetDmaBufPitch() const override { return 0; }
232 gfx::BufferFormat GetBufferFormat() const override { 232 gfx::BufferFormat GetBufferFormat() const override {
233 return gfx::BufferFormat::BGRA_8888; 233 return gfx::BufferFormat::BGRA_8888;
234 } 234 }
235 gfx::Size GetBufferSize() const override { return gfx::Size(); } 235 gfx::Size GetBufferSize() const override { return gfx::Size(); }
236 236
237 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 237 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
238 int plane_z_order, 238 int plane_z_order,
239 gfx::OverlayTransform plane_transform, 239 gfx::OverlayTransform plane_transform,
240 gfx::BufferFormat storage_format,
240 const gfx::Rect& display_bounds, 241 const gfx::Rect& display_bounds,
241 const gfx::RectF& crop_rect) override { 242 const gfx::RectF& crop_rect,
243 bool handle_scaling) override {
242 return true; 244 return true;
243 } 245 }
244 void SetProcessingCallback( 246 void SetProcessingCallback(
245 const ProcessingCallback& processing_callback) override {} 247 const ProcessingCallback& processing_callback) override {}
246 scoped_refptr<NativePixmap> GetProcessedPixmap( 248 scoped_refptr<NativePixmap> GetProcessedPixmap(
247 gfx::Size target_size, 249 gfx::Size target_size,
248 gfx::BufferFormat target_format) override { 250 gfx::BufferFormat target_format) override {
249 return nullptr; 251 return nullptr;
250 } 252 }
251 gfx::NativePixmapHandle ExportHandle() override { 253 gfx::NativePixmapHandle ExportHandle() override {
(...skipping 25 matching lines...) Expand all
277 return false; 279 return false;
278 } 280 }
279 281
280 set_gl_get_proc_address.Run(gl_proc); 282 set_gl_get_proc_address.Run(gl_proc);
281 add_gl_library.Run(lib_egl); 283 add_gl_library.Run(lib_egl);
282 add_gl_library.Run(lib_gles2); 284 add_gl_library.Run(lib_gles2);
283 return true; 285 return true;
284 } 286 }
285 287
286 } // namespace ui 288 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/demo/surfaceless_gl_renderer.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