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

Unified Diff: blimp/engine/app/ui/blimp_ui_context_factory.cc

Issue 1830293003: Remove BlimpUiContextFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove blink/engine deps Created 4 years, 9 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 | « blimp/engine/app/ui/blimp_ui_context_factory.h ('k') | blimp/engine/app/ui/blimp_window_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/ui/blimp_ui_context_factory.cc
diff --git a/blimp/engine/app/ui/blimp_ui_context_factory.cc b/blimp/engine/app/ui/blimp_ui_context_factory.cc
deleted file mode 100644
index cd786ed18409e9772b846631c7c15ea3ec6e7132..0000000000000000000000000000000000000000
--- a/blimp/engine/app/ui/blimp_ui_context_factory.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "blimp/engine/app/ui/blimp_ui_context_factory.h"
-
-#include "cc/output/output_surface.h"
-#include "cc/resources/shared_bitmap_manager.h"
-#include "cc/surfaces/surface_id_allocator.h"
-#include "content/browser/compositor/image_transport_factory.h"
-#include "third_party/khronos/GLES2/gl2.h"
-#include "ui/compositor/reflector.h"
-
-namespace blimp {
-namespace engine {
-
-BlimpUiContextFactory::BlimpUiContextFactory()
- : next_surface_id_namespace_(1u) {}
-
-BlimpUiContextFactory::~BlimpUiContextFactory() {}
-
-void BlimpUiContextFactory::CreateOutputSurface(
- base::WeakPtr<ui::Compositor> compositor) {
-}
-
-scoped_ptr<ui::Reflector> BlimpUiContextFactory::CreateReflector(
- ui::Compositor* mirroed_compositor,
- ui::Layer* mirroring_layer) {
- NOTREACHED();
- return nullptr;
-}
-
-void BlimpUiContextFactory::RemoveReflector(ui::Reflector* reflector) {
- NOTREACHED();
-}
-
-scoped_refptr<cc::ContextProvider>
-BlimpUiContextFactory::SharedMainThreadContextProvider() {
- NOTREACHED();
- return nullptr;
-}
-
-void BlimpUiContextFactory::RemoveCompositor(ui::Compositor* compositor) {
- NOTIMPLEMENTED();
-}
-
-bool BlimpUiContextFactory::DoesCreateTestContexts() {
- return false;
-}
-
-uint32_t BlimpUiContextFactory::GetImageTextureTarget(gfx::BufferFormat format,
- gfx::BufferUsage usage) {
- // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D.
- return GL_TEXTURE_2D;
-}
-
-cc::SharedBitmapManager* BlimpUiContextFactory::GetSharedBitmapManager() {
- return nullptr;
-}
-
-gpu::GpuMemoryBufferManager*
-BlimpUiContextFactory::GetGpuMemoryBufferManager() {
- return nullptr;
-}
-
-cc::TaskGraphRunner* BlimpUiContextFactory::GetTaskGraphRunner() {
- return &task_graph_runner_;
-}
-
-scoped_ptr<cc::SurfaceIdAllocator>
-BlimpUiContextFactory::CreateSurfaceIdAllocator() {
- scoped_ptr<cc::SurfaceIdAllocator> allocator(
- new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
- content::ImageTransportFactory* factory =
- content::ImageTransportFactory::GetInstance();
- if (factory->GetSurfaceManager())
- allocator->RegisterSurfaceIdNamespace(factory->GetSurfaceManager());
- return allocator;
-}
-
-void BlimpUiContextFactory::ResizeDisplay(ui::Compositor* compositor,
- const gfx::Size& size) {
-}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/app/ui/blimp_ui_context_factory.h ('k') | blimp/engine/app/ui/blimp_window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698