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

Side by Side Diff: cc/output/output_surface_client.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 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
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/output_surface_frame.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/cc_export.h"
12 #include "cc/output/context_provider.h" 12 #include "cc/output/context_provider.h"
13 #include "cc/resources/returned_resource.h" 13 #include "cc/resources/returned_resource.h"
14 #include "gpu/command_buffer/common/texture_in_use_response.h" 14 #include "gpu/command_buffer/common/texture_in_use_response.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 16
17 namespace cc { 17 namespace cc {
18 18
19 class CC_EXPORT OutputSurfaceClient { 19 class CC_EXPORT OutputSurfaceClient {
20 public: 20 public:
21 // A notification that the swap of the backbuffer to the hardware is complete 21 // A notification that the swap of the backbuffer to the hardware is complete
22 // and is now visible to the user. 22 // and is now visible to the user.
23 virtual void DidReceiveSwapBuffersAck() = 0; 23 virtual void DidReceiveSwapBuffersAck() = 0;
24 24
25 // For surfaceless/ozone implementations to create damage for the next frame. 25 // For surfaceless/ozone implementations to create damage for the next frame.
26 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) = 0; 26 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) = 0;
27 27
28 // For overlays. 28 // For overlays.
29 virtual void DidReceiveTextureInUseResponses( 29 virtual void DidReceiveTextureInUseResponses(
30 const gpu::TextureInUseResponses& responses) = 0; 30 const gpu::TextureInUseResponses& responses) = 0;
31 31
32 protected: 32 protected:
33 virtual ~OutputSurfaceClient() {} 33 virtual ~OutputSurfaceClient() {}
34 }; 34 };
35 35
36 } // namespace cc 36 } // namespace cc
37 37
38 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 38 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/output_surface_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698