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

Side by Side Diff: components/mus/gles2/command_buffer_driver.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
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 COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 mojo::Array<int32_t> attribs); 78 mojo::Array<int32_t> attribs);
79 void SetGetBuffer(int32_t buffer); 79 void SetGetBuffer(int32_t buffer);
80 void Flush(int32_t put_offset); 80 void Flush(int32_t put_offset);
81 void RegisterTransferBuffer(int32_t id, 81 void RegisterTransferBuffer(int32_t id,
82 mojo::ScopedSharedBufferHandle transfer_buffer, 82 mojo::ScopedSharedBufferHandle transfer_buffer,
83 uint32_t size); 83 uint32_t size);
84 void DestroyTransferBuffer(int32_t id); 84 void DestroyTransferBuffer(int32_t id);
85 void CreateImage(int32_t id, 85 void CreateImage(int32_t id,
86 mojo::ScopedHandle memory_handle, 86 mojo::ScopedHandle memory_handle,
87 int32_t type, 87 int32_t type,
88 mojo::SizePtr size, 88 const gfx::Size& size,
89 int32_t format, 89 int32_t format,
90 int32_t internal_format); 90 int32_t internal_format);
91 void CreateImageNativeOzone(int32_t id, 91 void CreateImageNativeOzone(int32_t id,
92 int32_t type, 92 int32_t type,
93 gfx::Size size, 93 gfx::Size size,
94 gfx::BufferFormat format, 94 gfx::BufferFormat format,
95 uint32_t internal_format, 95 uint32_t internal_format,
96 ui::NativePixmap* pixmap); 96 ui::NativePixmap* pixmap);
97 void DestroyImage(int32_t id); 97 void DestroyImage(int32_t id);
98 bool IsScheduled() const; 98 bool IsScheduled() const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 base::TimeTicks last_idle_time_; 161 base::TimeTicks last_idle_time_;
162 162
163 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; 163 base::WeakPtrFactory<CommandBufferDriver> weak_factory_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); 165 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver);
166 }; 166 };
167 167
168 } // namespace mus 168 } // namespace mus
169 169
170 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ 170 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698