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

Unified Diff: components/display_compositor/gl_helper_scaling.h

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_scaling.h
diff --git a/content/browser/compositor/gl_helper_scaling.h b/components/display_compositor/gl_helper_scaling.h
similarity index 93%
rename from content/browser/compositor/gl_helper_scaling.h
rename to components/display_compositor/gl_helper_scaling.h
index 6fbc03342ad7d90e0b72301885549056b02399be..a2e5b61665ac05c6f858c9f20c862c502bbb25d4 100644
--- a/content/browser/compositor/gl_helper_scaling.h
+++ b/components/display_compositor/gl_helper_scaling.h
@@ -2,19 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_COMPOSITOR_GL_HELPER_SCALING_H_
-#define CONTENT_BROWSER_COMPOSITOR_GL_HELPER_SCALING_H_
+#ifndef COMPONENTS_DISPLAY_COMPOSITOR_GL_HELPER_SCALING_H_
+#define COMPONENTS_DISPLAY_COMPOSITOR_GL_HELPER_SCALING_H_
#include <deque>
#include <map>
#include <vector>
#include "base/macros.h"
-#include "content/browser/compositor/gl_helper.h"
+#include "components/display_compositor/display_compositor_export.h"
+#include "components/display_compositor/gl_helper.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
-namespace content {
+namespace display_compositor {
class ShaderProgram;
class ScalerImpl;
@@ -23,7 +24,7 @@ class GLHelperTest;
// Implements GPU texture scaling methods.
// Note that you should probably not use this class directly.
// See gl_helper.cc::CreateScaler instead.
-class CONTENT_EXPORT GLHelperScaling {
+class DISPLAY_COMPOSITOR_EXPORT GLHelperScaling {
public:
enum ShaderType {
SHADER_BILINEAR,
@@ -40,7 +41,7 @@ class CONTENT_EXPORT GLHelperScaling {
// Similar to ScalerInterface, but can generate multiple outputs.
// Used for YUV conversion in gl_helper.c
- class CONTENT_EXPORT ShaderInterface {
+ class DISPLAY_COMPOSITOR_EXPORT ShaderInterface {
public:
ShaderInterface() {}
virtual ~ShaderInterface() {}
@@ -197,10 +198,11 @@ class CONTENT_EXPORT GLHelperScaling {
friend class ShaderProgram;
friend class ScalerImpl;
+ friend class GLHelperBenchmark;
friend class GLHelperTest;
DISALLOW_COPY_AND_ASSIGN(GLHelperScaling);
};
-} // namespace content
+} // namespace display_compositor
-#endif // CONTENT_BROWSER_COMPOSITOR_GL_HELPER_SCALING_H_
+#endif // COMPONENTS_DISPLAY_COMPOSITOR_GL_HELPER_SCALING_H_
« no previous file with comments | « components/display_compositor/gl_helper_readback_support.cc ('k') | components/display_compositor/gl_helper_scaling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698