Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 // removed. https://crbug.com/581777#c36 | 85 // removed. https://crbug.com/581777#c36 |
| 86 virtual bool EmulatingRGB() const; | 86 virtual bool EmulatingRGB() const; |
| 87 | 87 |
| 88 // An identifier for subclasses. Necessary for safe downcasting. | 88 // An identifier for subclasses. Necessary for safe downcasting. |
| 89 enum class Type { | 89 enum class Type { |
| 90 NONE, | 90 NONE, |
| 91 IOSURFACE | 91 IOSURFACE |
| 92 }; | 92 }; |
| 93 virtual Type GetType() const; | 93 virtual Type GetType() const; |
| 94 | 94 |
| 95 // Flush any preceding rendering for the image. | |
| 96 virtual void Flush() = 0; | |
|
reveman
2016/06/29 07:37:51
Do we need to add GLImage API function for this? I
vinceh
2016/06/29 07:44:36
That's actually implemented according to Daniel's
dnicoara
2016/06/29 14:21:56
My thought was to make it a generic API since it i
vinceh
2016/06/30 09:22:48
Then let's implement this inside GLImageOzoneNativ
marcheu1
2016/07/01 06:45:58
If we do this as part of ScheduleOverlayPlane, wou
reveman
2016/07/11 18:59:06
Is this flush needed in the sw raster case? In the
| |
| 97 | |
| 95 protected: | 98 protected: |
| 96 virtual ~GLImage() {} | 99 virtual ~GLImage() {} |
| 97 | 100 |
| 98 private: | 101 private: |
| 99 friend class base::RefCounted<GLImage>; | 102 friend class base::RefCounted<GLImage>; |
| 100 | 103 |
| 101 DISALLOW_COPY_AND_ASSIGN(GLImage); | 104 DISALLOW_COPY_AND_ASSIGN(GLImage); |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 } // namespace gl | 107 } // namespace gl |
| 105 | 108 |
| 106 #endif // UI_GL_GL_IMAGE_H_ | 109 #endif // UI_GL_GL_IMAGE_H_ |
| OLD | NEW |