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

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

Issue 1327343003: Force swap buffers when re-creating the buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-scanout
Patch Set: 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
« no previous file with comments | « no previous file | cc/surfaces/display.h » ('j') | cc/surfaces/display.cc » ('J')
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"
(...skipping 27 matching lines...) Expand all
38 const gfx::Transform& transform_for_tile_priority, 38 const gfx::Transform& transform_for_tile_priority,
39 bool resourceless_software_draw) = 0; 39 bool resourceless_software_draw) = 0;
40 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0; 40 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0;
41 // If set, |callback| will be called subsequent to each new tree activation, 41 // If set, |callback| will be called subsequent to each new tree activation,
42 // regardless of the compositor visibility or damage. |callback| must remain 42 // regardless of the compositor visibility or damage. |callback| must remain
43 // valid for the lifetime of the OutputSurfaceClient or until unregisted -- 43 // valid for the lifetime of the OutputSurfaceClient or until unregisted --
44 // use SetTreeActivationCallback(base::Closure()) to unregister it. 44 // use SetTreeActivationCallback(base::Closure()) to unregister it.
45 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0; 45 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0;
46 // This allows the output surface to ask it's client for a draw. 46 // This allows the output surface to ask it's client for a draw.
47 virtual void OnDraw() = 0; 47 virtual void OnDraw() = 0;
48 virtual void ForceSwap() = 0;
jbauman 2015/09/10 19:29:49 You should use SetNeedsRedrawRect, with a damage r
dnicoara 2015/09/10 19:39:39 Done.
48 49
49 protected: 50 protected:
50 virtual ~OutputSurfaceClient() {} 51 virtual ~OutputSurfaceClient() {}
51 }; 52 };
52 53
53 } // namespace cc 54 } // namespace cc
54 55
55 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 56 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/display.h » ('j') | cc/surfaces/display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698