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

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

Issue 2109803003: Add support for EXT_image_flush_external extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for EXT_image_flush_external extension Created 4 years, 5 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 (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
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/07/11 18:59:06 nit: EmulatingRGB and GetType are temporary workar
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_
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_autogen_egl.cc ('k') | ui/gl/gl_image_egl.h » ('j') | ui/gl/gl_image_glx.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698