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

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

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + added uip::Surface Created 5 years, 3 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
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_SURFACE_FACTORY_H_ 5 #ifndef CC_SURFACES_SURFACE_FACTORY_H_
6 #define CC_SURFACES_SURFACE_FACTORY_H_ 6 #define CC_SURFACES_SURFACE_FACTORY_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/containers/scoped_ptr_hash_map.h" 11 #include "base/containers/scoped_ptr_hash_map.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "cc/output/compositor_frame.h"
14 #include "cc/surfaces/surface_id.h" 15 #include "cc/surfaces/surface_id.h"
15 #include "cc/surfaces/surface_resource_holder.h" 16 #include "cc/surfaces/surface_resource_holder.h"
16 #include "cc/surfaces/surface_sequence.h" 17 #include "cc/surfaces/surface_sequence.h"
17 #include "cc/surfaces/surfaces_export.h" 18 #include "cc/surfaces/surfaces_export.h"
18 19
19 namespace gfx { 20 namespace gfx {
20 class Size; 21 class Size;
21 } 22 }
22 23
23 namespace cc { 24 namespace cc {
24 class CompositorFrame;
25 class CopyOutputRequest; 25 class CopyOutputRequest;
26 class Surface; 26 class Surface;
27 class SurfaceFactoryClient; 27 class SurfaceFactoryClient;
28 class SurfaceManager; 28 class SurfaceManager;
29 29
30 enum class SurfaceDrawStatus { DRAW_SKIPPED, DRAWN }; 30 enum class SurfaceDrawStatus { DRAW_SKIPPED, DRAWN };
31 31
32 // A SurfaceFactory is used to create surfaces that may share resources and 32 // A SurfaceFactory is used to create surfaces that may share resources and
33 // receive returned resources for frames submitted to those surfaces. Resources 33 // receive returned resources for frames submitted to those surfaces. Resources
34 // submitted to frames created by a particular factory will be returned to that 34 // submitted to frames created by a particular factory will be returned to that
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 typedef base::ScopedPtrHashMap<SurfaceId, scoped_ptr<Surface>> 79 typedef base::ScopedPtrHashMap<SurfaceId, scoped_ptr<Surface>>
80 OwningSurfaceMap; 80 OwningSurfaceMap;
81 OwningSurfaceMap surface_map_; 81 OwningSurfaceMap surface_map_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(SurfaceFactory); 83 DISALLOW_COPY_AND_ASSIGN(SurfaceFactory);
84 }; 84 };
85 85
86 } // namespace cc 86 } // namespace cc
87 87
88 #endif // CC_SURFACES_SURFACE_FACTORY_H_ 88 #endif // CC_SURFACES_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | components/html_viewer/html_widget.cc » ('j') | components/html_viewer/html_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698