Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_OZONE_PUBLIC_CLIENT_PIXMAP_H_ | |
| 6 #define UI_OZONE_PUBLIC_CLIENT_PIXMAP_H_ | |
| 7 | |
| 8 #include "ui/ozone/ozone_export.h" | |
| 9 | |
| 10 namespace ui { | |
| 11 | |
| 12 // This represents a buffer that can be written to directly by regular CPU code | |
| 13 // in non-GPU processes, but can also be read by the GPU. | |
|
reveman
2015/07/30 16:14:10
"non-GPU processes", do we need to be this specifi
dshwang
2015/07/30 16:50:15
That's true, though we don't have the use case yet
| |
| 14 // NativePixmap is its counterpart in GPU process. | |
| 15 class OZONE_EXPORT ClientPixmap { | |
|
reveman
2015/07/30 16:14:10
Why the "Native" prefix in one case but not the ot
dshwang
2015/07/30 16:50:15
Ok, I remain this up to spang. spang, which do you
dshwang
2015/07/31 10:41:04
Ok, NativePixmap and ClientNativePixmap are chosen
| |
| 16 public: | |
| 17 virtual ~ClientPixmap() {} | |
| 18 | |
| 19 virtual void* Map() = 0; | |
| 20 virtual void Unmap() = 0; | |
| 21 virtual int GetStride() const = 0; | |
| 22 }; | |
| 23 | |
| 24 } // namespace ui | |
| 25 | |
| 26 #endif // UI_OZONE_PUBLIC_CLIENT_PIXMAP_H_ | |
| OLD | NEW |