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

Side by Side Diff: mandoline/ui/aura/surface_context_factory.cc

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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 unified diff | Download patch
OLDNEW
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 "mandoline/ui/aura/surface_context_factory.h" 5 #include "mandoline/ui/aura/surface_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 "components/view_manager/public/cpp/view.h" 10 #include "components/view_manager/public/cpp/view.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 void SurfaceContextFactory::RemoveCompositor(ui::Compositor* compositor) { 61 void SurfaceContextFactory::RemoveCompositor(ui::Compositor* compositor) {
62 NOTIMPLEMENTED(); 62 NOTIMPLEMENTED();
63 } 63 }
64 64
65 bool SurfaceContextFactory::DoesCreateTestContexts() { 65 bool SurfaceContextFactory::DoesCreateTestContexts() {
66 return false; 66 return false;
67 } 67 }
68 68
69 uint32 SurfaceContextFactory::GetImageTextureTarget( 69 uint32 SurfaceContextFactory::GetImageTextureTarget(gfx::BufferFormat format,
70 gfx::GpuMemoryBuffer::Format format, 70 gfx::BufferUsage usage) {
71 gfx::GpuMemoryBuffer::Usage usage) {
72 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. 71 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D.
73 return GL_TEXTURE_2D; 72 return GL_TEXTURE_2D;
74 } 73 }
75 74
76 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { 75 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() {
77 NOTIMPLEMENTED(); 76 NOTIMPLEMENTED();
78 return nullptr; 77 return nullptr;
79 } 78 }
80 79
81 gpu::GpuMemoryBufferManager* 80 gpu::GpuMemoryBufferManager*
(...skipping 10 matching lines...) Expand all
92 return make_scoped_ptr( 91 return make_scoped_ptr(
93 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); 92 new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
94 } 93 }
95 94
96 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, 95 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor,
97 const gfx::Size& size) { 96 const gfx::Size& size) {
98 NOTIMPLEMENTED(); 97 NOTIMPLEMENTED();
99 } 98 }
100 99
101 } // namespace mandoline 100 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/ui/aura/surface_context_factory.h ('k') | media/renderers/gpu_video_accelerator_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698