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

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

Issue 2037983003: gl: Check format is valid given an internal format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make validation as restrictive as possible. Created 4 years, 6 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 | « no previous file | ui/gl/gl_image_ozone_native_pixmap.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 #ifndef UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 5 #ifndef UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ui/gfx/buffer_types.h" 10 #include "ui/gfx/buffer_types.h"
(...skipping 15 matching lines...) Expand all
26 bool CopyTexImage(unsigned target) override; 26 bool CopyTexImage(unsigned target) override;
27 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 27 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
28 int z_order, 28 int z_order,
29 gfx::OverlayTransform transform, 29 gfx::OverlayTransform transform,
30 const gfx::Rect& bounds_rect, 30 const gfx::Rect& bounds_rect,
31 const gfx::RectF& crop_rect) override; 31 const gfx::RectF& crop_rect) override;
32 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 32 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
33 uint64_t process_tracing_id, 33 uint64_t process_tracing_id,
34 const std::string& dump_name) override; 34 const std::string& dump_name) override;
35 35
36 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
37
36 protected: 38 protected:
37 ~GLImageOzoneNativePixmap() override; 39 ~GLImageOzoneNativePixmap() override;
38 40
39 private: 41 private:
40 unsigned internalformat_; 42 unsigned internalformat_;
41 scoped_refptr<ui::NativePixmap> pixmap_; 43 scoped_refptr<ui::NativePixmap> pixmap_;
42 }; 44 };
43 45
44 } // namespace gl 46 } // namespace gl
45 47
46 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 48 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698