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

Side by Side Diff: ui/gl/gl_image.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef UI_GL_GL_IMAGE_H_
6 #define UI_GL_GL_IMAGE_H_ 6 #define UI_GL_GL_IMAGE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "ui/gfx/buffer_types.h"
11 #include "ui/gfx/geometry/point.h" 12 #include "ui/gfx/geometry/point.h"
12 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
13 #include "ui/gfx/geometry/rect_f.h" 14 #include "ui/gfx/geometry/rect_f.h"
14 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 #include "ui/gfx/overlay_transform.h" 17 #include "ui/gfx/overlay_transform.h"
17 #include "ui/gl/gl_export.h" 18 #include "ui/gl/gl_export.h"
18 19
19 namespace base { 20 namespace base {
20 namespace trace_event { 21 namespace trace_event {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Returns true on success. It is valid for an implementation to always 56 // Returns true on success. It is valid for an implementation to always
56 // return false. 57 // return false.
57 virtual bool CopyTexSubImage(unsigned target, 58 virtual bool CopyTexSubImage(unsigned target,
58 const gfx::Point& offset, 59 const gfx::Point& offset,
59 const gfx::Rect& rect) = 0; 60 const gfx::Rect& rect) = 0;
60 61
61 // Schedule image as an overlay plane to be shown at swap time for |widget|. 62 // Schedule image as an overlay plane to be shown at swap time for |widget|.
62 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 63 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
63 int z_order, 64 int z_order,
64 gfx::OverlayTransform transform, 65 gfx::OverlayTransform transform,
66 gfx::BufferFormat storage_format,
65 const gfx::Rect& bounds_rect, 67 const gfx::Rect& bounds_rect,
66 const gfx::RectF& crop_rect) = 0; 68 const gfx::RectF& crop_rect,
69 bool handle_scaling) = 0;
67 70
68 // Dumps information about the memory backing the GLImage to a dump named 71 // Dumps information about the memory backing the GLImage to a dump named
69 // |dump_name|. 72 // |dump_name|.
70 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 73 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
71 uint64_t process_tracing_id, 74 uint64_t process_tracing_id,
72 const std::string& dump_name) = 0; 75 const std::string& dump_name) = 0;
73 76
74 protected: 77 protected:
75 virtual ~GLImage() {} 78 virtual ~GLImage() {}
76 79
77 private: 80 private:
78 friend class base::RefCounted<GLImage>; 81 friend class base::RefCounted<GLImage>;
79 82
80 DISALLOW_COPY_AND_ASSIGN(GLImage); 83 DISALLOW_COPY_AND_ASSIGN(GLImage);
81 }; 84 };
82 85
83 } // namespace gl 86 } // namespace gl
84 87
85 #endif // UI_GL_GL_IMAGE_H_ 88 #endif // UI_GL_GL_IMAGE_H_
OLDNEW
« no previous file with comments | « mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h ('k') | ui/gl/gl_image_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698