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

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: 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
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); } 197 gfx::Size GetBufferSize() const override { return gfx::Size(); }
198 198
199 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 199 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
200 int plane_z_order, 200 int plane_z_order,
201 gfx::OverlayTransform plane_transform, 201 gfx::OverlayTransform plane_transform,
202 gfx::BufferFormat storage_format,
202 const gfx::Rect& display_bounds, 203 const gfx::Rect& display_bounds,
203 const gfx::RectF& crop_rect) override { 204 const gfx::RectF& crop_rect,
205 bool handle_scaling) override {
204 return true; 206 return true;
205 } 207 }
206 void SetProcessingCallback( 208 void SetProcessingCallback(
207 const ProcessingCallback& processing_callback) override {} 209 const ProcessingCallback& processing_callback) override {}
208 scoped_refptr<NativePixmap> GetProcessedPixmap( 210 scoped_refptr<NativePixmap> GetProcessedPixmap(
209 gfx::Size target_size, 211 gfx::Size target_size,
210 gfx::BufferFormat target_format) override { 212 gfx::BufferFormat target_format) override {
211 return nullptr; 213 return nullptr;
212 } 214 }
213 gfx::NativePixmapHandle ExportHandle() override { 215 gfx::NativePixmapHandle ExportHandle() override {
(...skipping 25 matching lines...) Expand all
239 return false; 241 return false;
240 } 242 }
241 243
242 set_gl_get_proc_address.Run(gl_proc); 244 set_gl_get_proc_address.Run(gl_proc);
243 add_gl_library.Run(lib_egl); 245 add_gl_library.Run(lib_egl);
244 add_gl_library.Run(lib_gles2); 246 add_gl_library.Run(lib_gles2);
245 return true; 247 return true;
246 } 248 }
247 249
248 } // namespace ui 250 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698