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

Unified Diff: components/display_compositor/buffer_queue.h

Issue 2002303002: Consolidate OutputSurface constructors into GL vs Vulkan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: outputsurface-constructors: rebase-and-fixcrash Created 4 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
« no previous file with comments | « components/display_compositor/BUILD.gn ('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/components/display_compositor/buffer_queue.h b/components/display_compositor/buffer_queue.h
index babbe6ecfe7666d962a6a2b807be42fc4cae82a4..f862b88534b44d730cad1a622867863bfc4bfb84 100644
--- a/components/display_compositor/buffer_queue.h
+++ b/components/display_compositor/buffer_queue.h
@@ -18,16 +18,16 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
-namespace cc {
-class ContextProvider;
-}
-
namespace gfx {
class GpuMemoryBuffer;
}
namespace gpu {
class GpuMemoryBufferManager;
+
+namespace gles2 {
+class GLES2Interface;
+}
}
namespace display_compositor {
@@ -40,7 +40,7 @@ class GLHelper;
// before the next BindFramebuffer call, otherwise it creates extra buffers.
class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
public:
- BufferQueue(scoped_refptr<cc::ContextProvider> context_provider,
+ BufferQueue(gpu::gles2::GLES2Interface* gl,
unsigned int texture_target,
unsigned int internalformat,
GLHelper* gl_helper,
@@ -99,8 +99,8 @@ class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
std::unique_ptr<AllocatedSurface> RecreateBuffer(
std::unique_ptr<AllocatedSurface> surface);
+ gpu::gles2::GLES2Interface* const gl_;
gfx::Size size_;
- scoped_refptr<cc::ContextProvider> context_provider_;
unsigned int fbo_;
size_t allocated_count_;
unsigned int texture_target_;
« no previous file with comments | « components/display_compositor/BUILD.gn ('k') | components/display_compositor/buffer_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698