Chromium Code Reviews| Index: content/common/gpu/client/gl_helper.h |
| diff --git a/content/common/gpu/client/gl_helper.h b/content/common/gpu/client/gl_helper.h |
| index 46db753207217ae13659920803008f68b739df8c..ef2352c92a17900e2bd5f744e9d67ce35fcaf7dd 100644 |
| --- a/content/common/gpu/client/gl_helper.h |
| +++ b/content/common/gpu/client/gl_helper.h |
| @@ -144,6 +144,7 @@ class ScopedFlush { |
| }; |
| class ReadbackYUVInterface; |
| +class GLHelperReadbackSupport; |
| // Provides higher level operations on top of the gpu::gles2::GLES2Interface |
| // interfaces. |
| @@ -277,9 +278,6 @@ class CONTENT_EXPORT GLHelper { |
| // size of the framebuffer. |
| void CopyTextureFullImage(GLuint texture, const gfx::Size& size); |
| - // Check whether rgb565 readback is supported or not. |
| - bool CanUseRgb565Readback(); |
| - |
| // A scaler will cache all intermediate textures and programs |
| // needed to scale from a specified size to a destination size. |
| // If the source or destination sizes changes, you must create |
| @@ -328,6 +326,8 @@ class CONTENT_EXPORT GLHelper { |
| // 0 if GL_EXT_draw_buffers is not available. |
| GLint MaxDrawBuffers(); |
|
no sievers
2014/02/28 19:25:53
Can you still put a comment here saying that it ch
sivag
2014/03/04 09:46:45
Done.
|
| + bool IsReadbackConfigSupported(SkBitmap::Config texture_format); |
| + |
| protected: |
| class CopyTextureToImpl; |
| @@ -340,8 +340,7 @@ class CONTENT_EXPORT GLHelper { |
| gpu::ContextSupport* context_support_; |
| scoped_ptr<CopyTextureToImpl> copy_texture_to_impl_; |
| scoped_ptr<GLHelperScaling> scaler_impl_; |
| - bool initialized_565_format_check_; |
| - bool support_565_format_; |
| + scoped_ptr<GLHelperReadbackSupport> readback_support_; |
| DISALLOW_COPY_AND_ASSIGN(GLHelper); |
| }; |