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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/common/drm_util.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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 class CastPixmap : public NativePixmap { 183 class CastPixmap : public NativePixmap {
184 public: 184 public:
185 CastPixmap() {} 185 CastPixmap() {}
186 186
187 void* GetEGLClientBuffer() override { 187 void* GetEGLClientBuffer() override {
188 // TODO(halliwell): try to implement this through CastEglPlatform. 188 // TODO(halliwell): try to implement this through CastEglPlatform.
189 return nullptr; 189 return nullptr;
190 } 190 }
191 int GetDmaBufFd() override { return 0; } 191 int GetDmaBufFd() override { return 0; }
192 int GetDmaBufPitch() override { return 0; } 192 int GetDmaBufPitch() override { return 0; }
193 gfx::BufferFormat GetBufferFormat() override {
194 return gfx::BufferFormat::LAST;
195 }
193 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 196 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
194 int plane_z_order, 197 int plane_z_order,
195 gfx::OverlayTransform plane_transform, 198 gfx::OverlayTransform plane_transform,
196 const gfx::Rect& display_bounds, 199 const gfx::Rect& display_bounds,
197 const gfx::RectF& crop_rect) override { 200 const gfx::RectF& crop_rect) override {
198 return true; 201 return true;
199 } 202 }
200 void SetScalingCallback(const ScalingCallback& scaling_callback) override {} 203 void SetProcessingCallback(
201 scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override { 204 const ProcessingCallback& processing_callback) override {}
205 scoped_refptr<NativePixmap> GetProcessedPixmap(
206 gfx::Size target_size,
207 gfx::BufferFormat target_format) override {
202 return nullptr; 208 return nullptr;
203 } 209 }
204 gfx::NativePixmapHandle ExportHandle() override { 210 gfx::NativePixmapHandle ExportHandle() override {
205 return gfx::NativePixmapHandle(); 211 return gfx::NativePixmapHandle();
206 } 212 }
207 213
208 private: 214 private:
209 ~CastPixmap() override {} 215 ~CastPixmap() override {}
210 216
211 DISALLOW_COPY_AND_ASSIGN(CastPixmap); 217 DISALLOW_COPY_AND_ASSIGN(CastPixmap);
(...skipping 18 matching lines...) Expand all
230 return false; 236 return false;
231 } 237 }
232 238
233 set_gl_get_proc_address.Run(gl_proc); 239 set_gl_get_proc_address.Run(gl_proc);
234 add_gl_library.Run(lib_egl); 240 add_gl_library.Run(lib_egl);
235 add_gl_library.Run(lib_gles2); 241 add_gl_library.Run(lib_gles2);
236 return true; 242 return true;
237 } 243 }
238 244
239 } // namespace ui 245 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/demo/surfaceless_gl_renderer.cc ('k') | ui/ozone/platform/drm/common/drm_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698