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

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

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 5 years, 2 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_DISPLAY_OUTPUT_SURFACE_H_ 5 #ifndef CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ 6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
7 7
8 #include "cc/output/output_surface.h" 8 #include "cc/output/output_surface.h"
9 #include "cc/surfaces/surface_factory.h" 9 #include "cc/surfaces/surface_factory.h"
10 #include "cc/surfaces/surface_factory_client.h" 10 #include "cc/surfaces/surface_factory_client.h"
(...skipping 27 matching lines...) Expand all
38 void ReceivedVSyncParameters(base::TimeTicks timebase, 38 void ReceivedVSyncParameters(base::TimeTicks timebase,
39 base::TimeDelta interval); 39 base::TimeDelta interval);
40 40
41 // OutputSurface implementation. 41 // OutputSurface implementation.
42 void SwapBuffers(CompositorFrame* frame) override; 42 void SwapBuffers(CompositorFrame* frame) override;
43 bool BindToClient(OutputSurfaceClient* client) override; 43 bool BindToClient(OutputSurfaceClient* client) override;
44 void ForceReclaimResources() override; 44 void ForceReclaimResources() override;
45 45
46 // SurfaceFactoryClient implementation. 46 // SurfaceFactoryClient implementation.
47 void ReturnResources(const ReturnedResourceArray& resources) override; 47 void ReturnResources(const ReturnedResourceArray& resources) override;
48 void SetBeginFrameSource(SurfaceId surface_id,
49 BeginFrameSource* begin_frame_source) override;
48 50
49 private: 51 private:
50 void SwapBuffersComplete(SurfaceDrawStatus drawn); 52 void SwapBuffersComplete(SurfaceDrawStatus drawn);
51 53
52 OnscreenDisplayClient* display_client_; 54 OnscreenDisplayClient* display_client_;
53 SurfaceFactory factory_; 55 SurfaceFactory factory_;
54 gfx::Size display_size_; 56 gfx::Size display_size_;
55 SurfaceId surface_id_; 57 SurfaceId surface_id_;
56 SurfaceIdAllocator* allocator_; 58 SurfaceIdAllocator* allocator_;
57 59
58 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); 60 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface);
59 }; 61 };
60 62
61 } // namespace cc 63 } // namespace cc
62 64
63 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ 65 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator_unittest.cc ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698