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

Side by Side Diff: ui/compositor/compositor.h

Issue 963223002: ui: Pass correct image texture target and one-copy settings to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: usetexturetarget: exportswitch Created 5 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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_thread_impl_browsertest.cc ('k') | ui/compositor/compositor.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual scoped_refptr<cc::ContextProvider> 82 virtual scoped_refptr<cc::ContextProvider>
83 SharedMainThreadContextProvider() = 0; 83 SharedMainThreadContextProvider() = 0;
84 84
85 // Destroys per-compositor data. 85 // Destroys per-compositor data.
86 virtual void RemoveCompositor(Compositor* compositor) = 0; 86 virtual void RemoveCompositor(Compositor* compositor) = 0;
87 87
88 // When true, the factory uses test contexts that do not do real GL 88 // When true, the factory uses test contexts that do not do real GL
89 // operations. 89 // operations.
90 virtual bool DoesCreateTestContexts() = 0; 90 virtual bool DoesCreateTestContexts() = 0;
91 91
92 // Returns the OpenGL target to use for image textures.
93 virtual uint32 GetImageTextureTarget() = 0;
94
92 // Gets the shared bitmap manager for software mode. 95 // Gets the shared bitmap manager for software mode.
93 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
94 97
95 // Gets the GPU memory buffer manager. 98 // Gets the GPU memory buffer manager.
96 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 99 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
97 100
98 // Creates a Surface ID allocator with a new namespace. 101 // Creates a Surface ID allocator with a new namespace.
99 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; 102 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0;
100 103
101 // Resize the display corresponding to this compositor to a particular size. 104 // Resize the display corresponding to this compositor to a particular size.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 LayerAnimatorCollection layer_animator_collection_; 326 LayerAnimatorCollection layer_animator_collection_;
324 327
325 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 328 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
326 329
327 DISALLOW_COPY_AND_ASSIGN(Compositor); 330 DISALLOW_COPY_AND_ASSIGN(Compositor);
328 }; 331 };
329 332
330 } // namespace ui 333 } // namespace ui
331 334
332 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 335 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl_browsertest.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698