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

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

Issue 1263323004: Add NativePixmapHandle type & interface for exporting them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cast build Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc » ('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 "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "chromecast/public/cast_egl_platform.h" 8 #include "chromecast/public/cast_egl_platform.h"
9 #include "chromecast/public/graphics_types.h" 9 #include "chromecast/public/graphics_types.h"
10 #include "ui/gfx/geometry/quad_f.h" 10 #include "ui/gfx/geometry/quad_f.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 int plane_z_order, 204 int plane_z_order,
205 gfx::OverlayTransform plane_transform, 205 gfx::OverlayTransform plane_transform,
206 const gfx::Rect& display_bounds, 206 const gfx::Rect& display_bounds,
207 const gfx::RectF& crop_rect) override { 207 const gfx::RectF& crop_rect) override {
208 return true; 208 return true;
209 } 209 }
210 void SetScalingCallback(const ScalingCallback& scaling_callback) override {} 210 void SetScalingCallback(const ScalingCallback& scaling_callback) override {}
211 scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override { 211 scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override {
212 return nullptr; 212 return nullptr;
213 } 213 }
214 gfx::NativePixmapHandle ExportHandle() override {
215 return gfx::NativePixmapHandle();
216 }
214 217
215 private: 218 private:
216 ~CastPixmap() override {} 219 ~CastPixmap() override {}
217 220
218 DISALLOW_COPY_AND_ASSIGN(CastPixmap); 221 DISALLOW_COPY_AND_ASSIGN(CastPixmap);
219 }; 222 };
220 return make_scoped_refptr(new CastPixmap); 223 return make_scoped_refptr(new CastPixmap);
221 } 224 }
222 225
223 bool SurfaceFactoryCast::LoadEGLGLES2Bindings( 226 bool SurfaceFactoryCast::LoadEGLGLES2Bindings(
(...skipping 13 matching lines...) Expand all
237 return false; 240 return false;
238 } 241 }
239 242
240 set_gl_get_proc_address.Run(gl_proc); 243 set_gl_get_proc_address.Run(gl_proc);
241 add_gl_library.Run(lib_egl); 244 add_gl_library.Run(lib_egl);
242 add_gl_library.Run(lib_gles2); 245 add_gl_library.Run(lib_gles2);
243 return true; 246 return true;
244 } 247 }
245 248
246 } // namespace ui 249 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698