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

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

Issue 1189833005: Revert of Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « mandoline/ui/aura/surface_context_factory.h ('k') | mojo/cc/context_provider_mojo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 SurfaceContextFactory::SharedMainThreadContextProvider() { 56 SurfaceContextFactory::SharedMainThreadContextProvider() {
57 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
58 return nullptr; 58 return nullptr;
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 NOTIMPLEMENTED();
66 return false; 67 return false;
67 } 68 }
68 69
69 uint32 SurfaceContextFactory::GetImageTextureTarget( 70 uint32 SurfaceContextFactory::GetImageTextureTarget(
70 gfx::GpuMemoryBuffer::Format format, 71 gfx::GpuMemoryBuffer::Format format,
71 gfx::GpuMemoryBuffer::Usage usage) { 72 gfx::GpuMemoryBuffer::Usage usage) {
72 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D. 73 // No GpuMemoryBuffer support, so just return GL_TEXTURE_2D.
73 return GL_TEXTURE_2D; 74 return GL_TEXTURE_2D;
74 } 75 }
75 76
76 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() { 77 cc::SharedBitmapManager* SurfaceContextFactory::GetSharedBitmapManager() {
77 NOTIMPLEMENTED(); 78 NOTIMPLEMENTED();
78 return nullptr; 79 return nullptr;
79 } 80 }
80 81
81 gpu::GpuMemoryBufferManager* 82 gpu::GpuMemoryBufferManager*
82 SurfaceContextFactory::GetGpuMemoryBufferManager() { 83 SurfaceContextFactory::GetGpuMemoryBufferManager() {
83 return &gpu_memory_buffer_manager_; 84 NOTIMPLEMENTED();
85 return nullptr;
84 } 86 }
85 87
86 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() { 88 cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() {
87 return raster_thread_helper_.task_graph_runner(); 89 NOTIMPLEMENTED();
90 return nullptr;
88 } 91 }
89 92
90 scoped_ptr<cc::SurfaceIdAllocator> 93 scoped_ptr<cc::SurfaceIdAllocator>
91 SurfaceContextFactory::CreateSurfaceIdAllocator() { 94 SurfaceContextFactory::CreateSurfaceIdAllocator() {
92 return make_scoped_ptr( 95 return make_scoped_ptr(
93 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); 96 new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
94 } 97 }
95 98
96 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor, 99 void SurfaceContextFactory::ResizeDisplay(ui::Compositor* compositor,
97 const gfx::Size& size) { 100 const gfx::Size& size) {
98 NOTIMPLEMENTED(); 101 NOTIMPLEMENTED();
99 } 102 }
100 103
101 } // namespace mandoline 104 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/ui/aura/surface_context_factory.h ('k') | mojo/cc/context_provider_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698