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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/surfaces/BUILD.gn ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 SurfaceManager* manager, 44 SurfaceManager* manager,
45 SharedBitmapManager* bitmap_manager, 45 SharedBitmapManager* bitmap_manager,
46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
47 const RendererSettings& settings); 47 const RendererSettings& settings);
48 ~Display() override; 48 ~Display() override;
49 49
50 bool Initialize(scoped_ptr<OutputSurface> output_surface); 50 bool Initialize(scoped_ptr<OutputSurface> output_surface);
51 51
52 // device_scale_factor is used to communicate to the external window system 52 // device_scale_factor is used to communicate to the external window system
53 // what scale this was rendered at. 53 // what scale this was rendered at.
54 void Resize(SurfaceId id, 54 void SetSurfaceId(SurfaceId id, float device_scale_factor);
55 const gfx::Size& new_size, 55 void Resize(const gfx::Size& new_size);
56 float device_scale_factor);
57 bool Draw(); 56 bool Draw();
58 57
59 SurfaceId CurrentSurfaceId(); 58 SurfaceId CurrentSurfaceId();
60 int GetMaxFramesPending(); 59 int GetMaxFramesPending();
61 60
62 // OutputSurfaceClient implementation. 61 // OutputSurfaceClient implementation.
63 void DeferredInitialize() override {} 62 void DeferredInitialize() override {}
64 void ReleaseGL() override {} 63 void ReleaseGL() override {}
65 void CommitVSyncParameters(base::TimeTicks timebase, 64 void CommitVSyncParameters(base::TimeTicks timebase,
66 base::TimeDelta interval) override; 65 base::TimeDelta interval) override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 scoped_ptr<DirectRenderer> renderer_; 101 scoped_ptr<DirectRenderer> renderer_;
103 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_; 102 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_;
104 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 103 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
105 104
106 DISALLOW_COPY_AND_ASSIGN(Display); 105 DISALLOW_COPY_AND_ASSIGN(Display);
107 }; 106 };
108 107
109 } // namespace cc 108 } // namespace cc
110 109
111 #endif // CC_SURFACES_DISPLAY_H_ 110 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698