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

Side by Side Diff: mojo/services/surfaces/surfaces_impl.h

Issue 432093003: Enqueuing new frames in a Surface should cause Displays to reaggregate it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ 5 #ifndef MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_
6 #define MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ 6 #define MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "cc/surfaces/display_client.h" 9 #include "cc/surfaces/display_client.h"
10 #include "cc/surfaces/surface_factory.h" 10 #include "cc/surfaces/surface_factory.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void CreateGLES2BoundSurface(CommandBufferPtr gles2_client, 47 virtual void CreateGLES2BoundSurface(CommandBufferPtr gles2_client,
48 SurfaceIdPtr id, 48 SurfaceIdPtr id,
49 mojo::SizePtr size) OVERRIDE; 49 mojo::SizePtr size) OVERRIDE;
50 50
51 // SurfaceFactoryClient implementation. 51 // SurfaceFactoryClient implementation.
52 virtual void ReturnResources( 52 virtual void ReturnResources(
53 const cc::ReturnedResourceArray& resources) OVERRIDE; 53 const cc::ReturnedResourceArray& resources) OVERRIDE;
54 54
55 // DisplayClient implementation. 55 // DisplayClient implementation.
56 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; 56 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE;
57 virtual void DisplayDamaged() OVERRIDE;
57 58
58 cc::SurfaceFactory* factory() { return &factory_; } 59 cc::SurfaceFactory* factory() { return &factory_; }
59 60
60 private: 61 private:
61 cc::SurfaceManager* manager_; 62 cc::SurfaceManager* manager_;
62 cc::SurfaceFactory factory_; 63 cc::SurfaceFactory factory_;
63 uint32_t id_namespace_; 64 uint32_t id_namespace_;
64 Client* client_; 65 Client* client_;
65 scoped_ptr<cc::Display> display_; 66 scoped_ptr<cc::Display> display_;
66 ScopedMessagePipeHandle command_buffer_handle_; 67 ScopedMessagePipeHandle command_buffer_handle_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); 69 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl);
69 }; 70 };
70 71
71 } // namespace mojo 72 } // namespace mojo
72 73
73 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_ 74 #endif // MOJO_SERVICES_SURFACES_SURFACES_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/surface_display_output_surface.cc ('k') | mojo/services/surfaces/surfaces_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698