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

Side by Side Diff: ui/gl/gl_image_io_surface.h

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/gl/gl_image_glx.cc ('k') | ui/gl/gl_image_io_surface.mm » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef UI_GL_GL_IMAGE_IO_SURFACE_H_ 5 #ifndef UI_GL_GL_IMAGE_IO_SURFACE_H_
6 #define UI_GL_GL_IMAGE_IO_SURFACE_H_ 6 #define UI_GL_GL_IMAGE_IO_SURFACE_H_
7 7
8 #include <IOSurface/IOSurface.h> 8 #include <IOSurface/IOSurface.h>
9 9
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
(...skipping 24 matching lines...) Expand all
35 unsigned GetInternalFormat() override; 35 unsigned GetInternalFormat() override;
36 bool BindTexImage(unsigned target) override; 36 bool BindTexImage(unsigned target) override;
37 void ReleaseTexImage(unsigned target) override {} 37 void ReleaseTexImage(unsigned target) override {}
38 bool CopyTexImage(unsigned target) override; 38 bool CopyTexImage(unsigned target) override;
39 bool CopyTexSubImage(unsigned target, 39 bool CopyTexSubImage(unsigned target,
40 const gfx::Point& offset, 40 const gfx::Point& offset,
41 const gfx::Rect& rect) override; 41 const gfx::Rect& rect) override;
42 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 42 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
43 int z_order, 43 int z_order,
44 gfx::OverlayTransform transform, 44 gfx::OverlayTransform transform,
45 gfx::BufferFormat storage_format,
45 const gfx::Rect& bounds_rect, 46 const gfx::Rect& bounds_rect,
46 const gfx::RectF& crop_rect) override; 47 const gfx::RectF& crop_rect,
48 bool handle_scaling) override;
47 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
48 uint64_t process_tracing_id, 50 uint64_t process_tracing_id,
49 const std::string& dump_name) override; 51 const std::string& dump_name) override;
50 52
51 gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; } 53 gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; }
52 base::ScopedCFTypeRef<IOSurfaceRef> io_surface(); 54 base::ScopedCFTypeRef<IOSurfaceRef> io_surface();
53 55
54 static void SetLayerForWidget(gfx::AcceleratedWidget widget, CALayer* layer); 56 static void SetLayerForWidget(gfx::AcceleratedWidget widget, CALayer* layer);
55 57
56 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format); 58 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
(...skipping 17 matching lines...) Expand all
74 int size_location_ = -1; 76 int size_location_ = -1;
75 unsigned vertex_buffer_ = 0; 77 unsigned vertex_buffer_ = 0;
76 unsigned yuv_textures_[2] = {}; 78 unsigned yuv_textures_[2] = {};
77 79
78 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); 80 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface);
79 }; 81 };
80 82
81 } // namespace gl 83 } // namespace gl
82 84
83 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ 85 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_glx.cc ('k') | ui/gl/gl_image_io_surface.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698