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

Side by Side Diff: cc/surfaces/display.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « cc/resources/tile_manager.cc ('k') | cc/surfaces/display.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 CC_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 #include "cc/output/renderer.h" 10 #include "cc/output/renderer.h"
(...skipping 28 matching lines...) Expand all
39 public RendererClient, 39 public RendererClient,
40 public SurfaceDamageObserver { 40 public SurfaceDamageObserver {
41 public: 41 public:
42 Display(DisplayClient* client, 42 Display(DisplayClient* client,
43 SurfaceManager* manager, 43 SurfaceManager* manager,
44 SharedBitmapManager* bitmap_manager, 44 SharedBitmapManager* bitmap_manager,
45 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); 45 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
46 ~Display() override; 46 ~Display() override;
47 47
48 bool Initialize(scoped_ptr<OutputSurface> output_surface); 48 bool Initialize(scoped_ptr<OutputSurface> output_surface);
49 void Resize(SurfaceId id, const gfx::Size& new_size); 49
50 // device_scale_factor is used to communicate to the external window system
51 // what scale this was rendered at.
52 void Resize(SurfaceId id,
53 const gfx::Size& new_size,
54 float device_scale_factor);
50 bool Draw(); 55 bool Draw();
51 56
52 SurfaceId CurrentSurfaceId(); 57 SurfaceId CurrentSurfaceId();
53 int GetMaxFramesPending(); 58 int GetMaxFramesPending();
54 59
55 // OutputSurfaceClient implementation. 60 // OutputSurfaceClient implementation.
56 void DeferredInitialize() override {} 61 void DeferredInitialize() override {}
57 void ReleaseGL() override {} 62 void ReleaseGL() override {}
58 void CommitVSyncParameters(base::TimeTicks timebase, 63 void CommitVSyncParameters(base::TimeTicks timebase,
59 base::TimeDelta interval) override; 64 base::TimeDelta interval) override;
(...skipping 21 matching lines...) Expand all
81 86
82 private: 87 private:
83 void InitializeRenderer(); 88 void InitializeRenderer();
84 89
85 DisplayClient* client_; 90 DisplayClient* client_;
86 SurfaceManager* manager_; 91 SurfaceManager* manager_;
87 SharedBitmapManager* bitmap_manager_; 92 SharedBitmapManager* bitmap_manager_;
88 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; 93 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
89 SurfaceId current_surface_id_; 94 SurfaceId current_surface_id_;
90 gfx::Size current_surface_size_; 95 gfx::Size current_surface_size_;
96 float device_scale_factor_;
91 LayerTreeSettings settings_; 97 LayerTreeSettings settings_;
92 scoped_ptr<OutputSurface> output_surface_; 98 scoped_ptr<OutputSurface> output_surface_;
93 scoped_ptr<ResourceProvider> resource_provider_; 99 scoped_ptr<ResourceProvider> resource_provider_;
94 scoped_ptr<SurfaceAggregator> aggregator_; 100 scoped_ptr<SurfaceAggregator> aggregator_;
95 scoped_ptr<DirectRenderer> renderer_; 101 scoped_ptr<DirectRenderer> renderer_;
96 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_; 102 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_;
97 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 103 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
98 104
99 DISALLOW_COPY_AND_ASSIGN(Display); 105 DISALLOW_COPY_AND_ASSIGN(Display);
100 }; 106 };
101 107
102 } // namespace cc 108 } // namespace cc
103 109
104 #endif // CC_SURFACES_DISPLAY_H_ 110 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698