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

Side by Side Diff: components/exo/buffer.h

Issue 2041663002: exo: Handle cross-fade animations properly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-shell-version-2
Patch Set: Created 4 years, 6 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 | components/exo/buffer.cc » ('j') | components/exo/buffer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_EXO_BUFFER_H_ 5 #ifndef COMPONENTS_EXO_BUFFER_H_
6 #define COMPONENTS_EXO_BUFFER_H_ 6 #define COMPONENTS_EXO_BUFFER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Set the callback to run when the buffer is no longer used by the 49 // Set the callback to run when the buffer is no longer used by the
50 // compositor. The client is free to re-use or destroy this buffer and 50 // compositor. The client is free to re-use or destroy this buffer and
51 // its backing storage after this has been called. 51 // its backing storage after this has been called.
52 void set_release_callback(const base::Closure& release_callback) { 52 void set_release_callback(const base::Closure& release_callback) {
53 release_callback_ = release_callback; 53 release_callback_ = release_callback;
54 } 54 }
55 55
56 // This function can be used to acquire a texture mailbox for the contents of 56 // This function can be used to acquire a texture mailbox for the contents of
57 // buffer. Returns a release callback on success. The release callback should 57 // buffer. Returns a release callback on success. The release callback should
58 // be called before a new texture mailbox can be acquired unless 58 // be called before a new texture mailbox can be acquired unless
59 // |lost_context| is true. 59 // |non_client_usage| is true.
60 std::unique_ptr<cc::SingleReleaseCallback> ProduceTextureMailbox( 60 std::unique_ptr<cc::SingleReleaseCallback> ProduceTextureMailbox(
61 cc::TextureMailbox* mailbox, 61 cc::TextureMailbox* mailbox,
62 bool secure_output_only, 62 bool secure_output_only,
63 bool lost_context); 63 bool non_client_usage);
Daniele Castagna 2016/06/06 02:47:53 I think in general is better to avoid negative nam
reveman 2016/06/06 03:17:36 Done.
64 64
65 // Returns the size of the buffer. 65 // Returns the size of the buffer.
66 gfx::Size GetSize() const; 66 gfx::Size GetSize() const;
67 67
68 // Returns a trace value representing the state of the buffer. 68 // Returns a trace value representing the state of the buffer.
69 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const; 69 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const;
70 70
71 private: 71 private:
72 class Texture; 72 class Texture;
73 73
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // The client release callback. 115 // The client release callback.
116 base::Closure release_callback_; 116 base::Closure release_callback_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(Buffer); 118 DISALLOW_COPY_AND_ASSIGN(Buffer);
119 }; 119 };
120 120
121 } // namespace exo 121 } // namespace exo
122 122
123 #endif // COMPONENTS_EXO_BUFFER_H_ 123 #endif // COMPONENTS_EXO_BUFFER_H_
OLDNEW
« no previous file with comments | « no previous file | components/exo/buffer.cc » ('j') | components/exo/buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698