1 // Copyright 2014 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.
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_
8 #include "gpu/command_buffer/service/gl_utils.h"
9 #include "gpu/gpu_export.h"
20 class GPU_EXPORT ClearFramebufferResourceManager
{
22 ClearFramebufferResourceManager(const gles2::GLES2Decoder
* decoder
);
23 ~ClearFramebufferResourceManager();
26 void ClearFramebuffer(const gles2::GLES2Decoder
* decoder
,
27 const gfx::Size
& framebuffer_size
,
29 GLfloat clear_color_red
,
30 GLfloat clear_color_green
,
31 GLfloat clear_color_blue
,
32 GLfloat clear_color_alpha
,
33 GLfloat clear_depth_value
,
34 GLint clear_stencil_value
);
37 void Initialize(const gles2::GLES2Decoder
* decoder
);
40 // The attributes used during invocation of the extension.
41 static const GLuint kVertexPositionAttrib
= 0;
49 DISALLOW_COPY_AND_ASSIGN(ClearFramebufferResourceManager
);
54 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_