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

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

Issue 2238693002: Plumb SetVisible from ui::Compositor to the DirectRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: setvisible-browser: onemore Created 4 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
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | ui/compositor/test/in_process_context_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 5 #ifndef UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 55 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
56 void RemoveCompositor(Compositor* compositor) override; 56 void RemoveCompositor(Compositor* compositor) override;
57 bool DoesCreateTestContexts() override; 57 bool DoesCreateTestContexts() override;
58 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 58 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
59 gfx::BufferUsage usage) override; 59 gfx::BufferUsage usage) override;
60 cc::SharedBitmapManager* GetSharedBitmapManager() override; 60 cc::SharedBitmapManager* GetSharedBitmapManager() override;
61 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 61 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
62 cc::TaskGraphRunner* GetTaskGraphRunner() override; 62 cc::TaskGraphRunner* GetTaskGraphRunner() override;
63 uint32_t AllocateSurfaceClientId() override; 63 uint32_t AllocateSurfaceClientId() override;
64 cc::SurfaceManager* GetSurfaceManager() override; 64 cc::SurfaceManager* GetSurfaceManager() override;
65 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override;
65 void ResizeDisplay(ui::Compositor* compositor, 66 void ResizeDisplay(ui::Compositor* compositor,
66 const gfx::Size& size) override; 67 const gfx::Size& size) override;
67 void SetDisplayColorSpace(ui::Compositor* compositor, 68 void SetDisplayColorSpace(ui::Compositor* compositor,
68 const gfx::ColorSpace& color_space) override {} 69 const gfx::ColorSpace& color_space) override {}
69 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 70 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
70 base::TimeDelta interval) override {} 71 base::TimeDelta interval) override {}
71 void SetDisplayVSyncParameters(ui::Compositor* compositor, 72 void SetDisplayVSyncParameters(ui::Compositor* compositor,
72 base::TimeTicks timebase, 73 base::TimeTicks timebase,
73 base::TimeDelta interval) override {} 74 base::TimeDelta interval) override {}
74 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {} 75 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
(...skipping 15 matching lines...) Expand all
90 91
91 base::hash_map<Compositor*, std::unique_ptr<cc::Display>> 92 base::hash_map<Compositor*, std::unique_ptr<cc::Display>>
92 per_compositor_data_; 93 per_compositor_data_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 95 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
95 }; 96 };
96 97
97 } // namespace ui 98 } // namespace ui
98 99
99 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 100 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698