| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "blimp/engine/ui/blimp_ui_context_factory.h" | 5 #include "blimp/engine/ui/blimp_ui_context_factory.h" |
| 6 | 6 |
| 7 #include "cc/output/output_surface.h" | 7 #include "cc/output/output_surface.h" |
| 8 #include "cc/resources/shared_bitmap_manager.h" | 8 #include "cc/resources/shared_bitmap_manager.h" |
| 9 #include "cc/surfaces/surface_id_allocator.h" | 9 #include "cc/surfaces/surface_id_allocator.h" |
| 10 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 void BlimpUiContextFactory::RemoveCompositor(ui::Compositor* compositor) { | 43 void BlimpUiContextFactory::RemoveCompositor(ui::Compositor* compositor) { |
| 44 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool BlimpUiContextFactory::DoesCreateTestContexts() { | 47 bool BlimpUiContextFactory::DoesCreateTestContexts() { |
| 48 return false; | 48 return false; |
| 49 } | 49 } |
| 50 | 50 |
| 51 uint32 BlimpUiContextFactory::GetImageTextureTarget(gfx::BufferFormat format, | 51 uint32_t BlimpUiContextFactory::GetImageTextureTarget(gfx::BufferFormat format, |
| 52 gfx::BufferUsage usage) { | 52 gfx::BufferUsage usage) { |
| 53 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. | 53 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. |
| 54 return GL_TEXTURE_2D; | 54 return GL_TEXTURE_2D; |
| 55 } | 55 } |
| 56 | 56 |
| 57 cc::SharedBitmapManager* BlimpUiContextFactory::GetSharedBitmapManager() { | 57 cc::SharedBitmapManager* BlimpUiContextFactory::GetSharedBitmapManager() { |
| 58 NOTIMPLEMENTED(); | 58 NOTIMPLEMENTED(); |
| 59 return nullptr; | 59 return nullptr; |
| 60 } | 60 } |
| 61 | 61 |
| 62 gpu::GpuMemoryBufferManager* | 62 gpu::GpuMemoryBufferManager* |
| (...skipping 11 matching lines...) Expand all Loading... |
| 74 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); | 74 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void BlimpUiContextFactory::ResizeDisplay(ui::Compositor* compositor, | 77 void BlimpUiContextFactory::ResizeDisplay(ui::Compositor* compositor, |
| 78 const gfx::Size& size) { | 78 const gfx::Size& size) { |
| 79 NOTIMPLEMENTED(); | 79 NOTIMPLEMENTED(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace engine | 82 } // namespace engine |
| 83 } // namespace blimp | 83 } // namespace blimp |
| OLD | NEW |