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

Unified Diff: components/viz/display_compositor/gl_helper_readback_support.cc

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 years, 7 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/viz/display_compositor/gl_helper_readback_support.cc
diff --git a/components/display_compositor/gl_helper_readback_support.cc b/components/viz/display_compositor/gl_helper_readback_support.cc
similarity index 97%
rename from components/display_compositor/gl_helper_readback_support.cc
rename to components/viz/display_compositor/gl_helper_readback_support.cc
index b7a019beef4798ce2c6d35c22a4a891ca242f7db..5fd12924b37755cf3c5bfa6ae7def7e52b0c75ac 100644
--- a/components/display_compositor/gl_helper_readback_support.cc
+++ b/components/viz/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 "components/viz/display_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 display_compositor {
+namespace viz {
GLHelperReadbackSupport::GLHelperReadbackSupport(gpu::gles2::GLES2Interface* gl)
: gl_(gl) {
@@ -75,7 +75,7 @@ void GLHelperReadbackSupport::GetAdditionalFormat(GLenum format,
}
const int kTestSize = 64;
- display_compositor::ScopedTexture dst_texture(gl_);
+ 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 display_compositor
+} // namespace viz
« no previous file with comments | « components/viz/display_compositor/gl_helper_readback_support.h ('k') | components/viz/display_compositor/gl_helper_scaling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698