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

Unified Diff: ui/gl/yuv_to_rgb_converter.cc

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/test/gl_surface_test_support.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/yuv_to_rgb_converter.cc
diff --git a/ui/gl/yuv_to_rgb_converter.cc b/ui/gl/yuv_to_rgb_converter.cc
index faf29b67f8912de931a536d2f3fdd4afce3962f9..1cb715d2bf113457644fe6aa9c911483e122afd6 100644
--- a/ui/gl/yuv_to_rgb_converter.cc
+++ b/ui/gl/yuv_to_rgb_converter.cc
@@ -8,7 +8,6 @@
#include "base/strings/stringprintf.h"
#include "ui/gl/gl_helper.h"
#include "ui/gl/gl_version_info.h"
-#include "ui/gl/scoped_api.h"
#include "ui/gl/scoped_binders.h"
namespace gl {
@@ -72,7 +71,6 @@ STRINGIZE(
YUVToRGBConverter::YUVToRGBConverter(const GLVersionInfo& gl_version_info) {
bool use_core_profile = gl_version_info.is_desktop_core_profile;
- ScopedSetGLToRealGLApi scoped_set_gl_api;
glGenFramebuffersEXT(1, &framebuffer_);
vertex_buffer_ = GLHelper::SetupQuadVertexBuffer();
vertex_shader_ = GLHelper::LoadShader(
@@ -107,7 +105,6 @@ YUVToRGBConverter::YUVToRGBConverter(const GLVersionInfo& gl_version_info) {
}
YUVToRGBConverter::~YUVToRGBConverter() {
- ScopedSetGLToRealGLApi scoped_set_gl_api;
glDeleteTextures(1, &y_texture_);
glDeleteTextures(1, &uv_texture_);
glDeleteProgram(program_);
@@ -120,8 +117,6 @@ YUVToRGBConverter::~YUVToRGBConverter() {
void YUVToRGBConverter::CopyYUV420ToRGB(unsigned target,
const gfx::Size& size,
unsigned rgb_texture) {
- ScopedSetGLToRealGLApi scoped_set_gl_api;
-
// Note that state restoration is done explicitly instead of scoped binders to
// avoid https://crbug.com/601729.
GLint old_active_texture = -1;
« no previous file with comments | « ui/gl/test/gl_surface_test_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698