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

Unified Diff: components/display_compositor/buffer_queue.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
« no previous file with comments | « components/display_compositor/OWNERS ('k') | components/display_compositor/buffer_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/buffer_queue.h
diff --git a/content/browser/compositor/buffer_queue.h b/components/display_compositor/buffer_queue.h
similarity index 90%
rename from content/browser/compositor/buffer_queue.h
rename to components/display_compositor/buffer_queue.h
index 772501c52a508f1d98aedb71ad19bc24792b5a6c..3672582c57679d0dd3f325ca608cf99d76440bc1 100644
--- a/content/browser/compositor/buffer_queue.h
+++ b/components/display_compositor/buffer_queue.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_COMPOSITOR_BUFFER_QUEUE_H_
-#define CONTENT_BROWSER_COMPOSITOR_BUFFER_QUEUE_H_
+#ifndef COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_
+#define COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_
#include <stddef.h>
@@ -13,7 +13,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "content/common/content_export.h"
+#include "components/display_compositor/display_compositor_export.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -29,7 +29,7 @@ namespace gpu {
class GpuMemoryBufferManager;
}
-namespace content {
+namespace display_compositor {
class GLHelper;
@@ -37,7 +37,7 @@ class GLHelper;
// created using CHROMIUM_gpu_memory_buffer_image. Double/triple buffering is
// implemented internally. Doublebuffering occurs if PageFlipComplete is called
// before the next BindFramebuffer call, otherwise it creates extra buffers.
-class CONTENT_EXPORT BufferQueue {
+class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
public:
BufferQueue(scoped_refptr<cc::ContextProvider> context_provider,
unsigned int texture_target,
@@ -65,7 +65,7 @@ class CONTENT_EXPORT BufferQueue {
friend class BufferQueueTest;
friend class AllocatedSurface;
- struct CONTENT_EXPORT AllocatedSurface {
+ struct DISPLAY_COMPOSITOR_EXPORT AllocatedSurface {
AllocatedSurface(BufferQueue* buffer_queue,
std::unique_ptr<gfx::GpuMemoryBuffer> buffer,
unsigned int texture,
@@ -121,6 +121,6 @@ class CONTENT_EXPORT BufferQueue {
DISALLOW_COPY_AND_ASSIGN(BufferQueue);
};
-} // namespace content
+} // namespace display_compositor
-#endif // CONTENT_BROWSER_COMPOSITOR_BUFFER_QUEUE_H_
+#endif // COMPONENTS_DISPLAY_COMPOSITOR_BUFFER_QUEUE_H_
« no previous file with comments | « components/display_compositor/OWNERS ('k') | components/display_compositor/buffer_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698