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

Unified Diff: components/display_compositor/gl_helper_readback_support.cc

Issue 1902463002: Introduce components/display_compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove bot changes. Will do in a separate CL Created 4 years, 8 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
Index: components/display_compositor/gl_helper_readback_support.cc
diff --git a/content/browser/compositor/gl_helper_readback_support.cc b/components/display_compositor/gl_helper_readback_support.cc
similarity index 97%
rename from content/browser/compositor/gl_helper_readback_support.cc
rename to components/display_compositor/gl_helper_readback_support.cc
index c389eda6ba543bf7882d76a8ef626e58b81e95c8..b7a019beef4798ce2c6d35c22a4a891ca242f7db 100644
--- a/content/browser/compositor/gl_helper_readback_support.cc
+++ b/components/display_compositor/gl_helper_readback_support.cc
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/compositor/gl_helper_readback_support.h"
#include "base/logging.h"
+#include "components/display_compositor/gl_helper_readback_support.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "third_party/skia/include/core/SkImageInfo.h"
-namespace content {
+namespace display_compositor {
GLHelperReadbackSupport::GLHelperReadbackSupport(gpu::gles2::GLES2Interface* gl)
: gl_(gl) {
@@ -75,7 +75,7 @@ void GLHelperReadbackSupport::GetAdditionalFormat(GLenum format,
}
const int kTestSize = 64;
- content::ScopedTexture dst_texture(gl_);
+ display_compositor::ScopedTexture dst_texture(gl_);
ScopedTextureBinder<GL_TEXTURE_2D> texture_binder(gl_, dst_texture);
gl_->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
gl_->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
@@ -169,4 +169,4 @@ GLHelperReadbackSupport::GetReadbackConfig(SkColorType color_type,
return GLHelperReadbackSupport::NOT_SUPPORTED;
}
-} // namespace content
+} // namespace display_compositor
« no previous file with comments | « components/display_compositor/gl_helper_readback_support.h ('k') | components/display_compositor/gl_helper_scaling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698