summaryrefslogtreecommitdiffstats
path: root/ui/compositor/test/in_process_context_provider.h
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2015-05-21 16:21:07 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-21 23:21:40 +0000
commit5f717f89f305eed2be7fe113cf8fd9bb6e80a6dd (patch)
tree9f63726c11973ce13ff83b5a34fa8c57e522aca8 /ui/compositor/test/in_process_context_provider.h
parent5c5e78fd2f3ce8e5d9bba747694b1ffc4d552ad9 (diff)
downloadchromium_src-5f717f89f305eed2be7fe113cf8fd9bb6e80a6dd.zip
chromium_src-5f717f89f305eed2be7fe113cf8fd9bb6e80a6dd.tar.gz
chromium_src-5f717f89f305eed2be7fe113cf8fd9bb6e80a6dd.tar.bz2
cc: Make CHROMIUM_image capability a requirement for impl-side painting.
This is a prerequisite to removing async uploads. BUG=460288 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1148273002 Cr-Commit-Position: refs/heads/master@{#331024}
Diffstat (limited to 'ui/compositor/test/in_process_context_provider.h')
-rw-r--r--ui/compositor/test/in_process_context_provider.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/compositor/test/in_process_context_provider.h b/ui/compositor/test/in_process_context_provider.h
index 5944bf9..dbeb0f4 100644
--- a/ui/compositor/test/in_process_context_provider.h
+++ b/ui/compositor/test/in_process_context_provider.h
@@ -18,6 +18,8 @@
namespace gpu {
class GLInProcessContext;
+class GpuMemoryBufferManager;
+class ImageFactory;
}
namespace ui {
@@ -26,17 +28,23 @@ class InProcessContextProvider : public cc::ContextProvider {
public:
static scoped_refptr<InProcessContextProvider> Create(
const gpu::gles2::ContextCreationAttribHelper& attribs,
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
+ gpu::ImageFactory* image_factory,
bool lose_context_when_out_of_memory,
gfx::AcceleratedWidget window,
const std::string& debug_name);
// Uses default attributes for creating an offscreen context.
static scoped_refptr<InProcessContextProvider> CreateOffscreen(
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
+ gpu::ImageFactory* image_factory,
bool lose_context_when_out_of_memory);
private:
InProcessContextProvider(
const gpu::gles2::ContextCreationAttribHelper& attribs,
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
+ gpu::ImageFactory* image_factory,
bool lose_context_when_out_of_memory,
gfx::AcceleratedWidget window,
const std::string& debug_name);
@@ -70,6 +78,8 @@ class InProcessContextProvider : public cc::ContextProvider {
skia::RefPtr<class GrContext> gr_context_;
gpu::gles2::ContextCreationAttribHelper attribs_;
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
+ gpu::ImageFactory* image_factory_;
bool lose_context_when_out_of_memory_;
gfx::AcceleratedWidget window_;
std::string debug_name_;