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

Side by Side Diff: cc/blink/web_external_texture_layer_impl.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 1 month 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/DEPS ('k') | cc/blink/web_external_texture_layer_impl.cc » ('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 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_BLINK_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool PrepareTextureMailbox( 49 bool PrepareTextureMailbox(
50 cc::TextureMailbox* mailbox, 50 cc::TextureMailbox* mailbox,
51 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 51 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
52 bool use_shared_memory) override; 52 bool use_shared_memory) override;
53 53
54 private: 54 private:
55 static void DidReleaseMailbox( 55 static void DidReleaseMailbox(
56 base::WeakPtr<WebExternalTextureLayerImpl> layer, 56 base::WeakPtr<WebExternalTextureLayerImpl> layer,
57 const blink::WebExternalTextureMailbox& mailbox, 57 const blink::WebExternalTextureMailbox& mailbox,
58 WebExternalBitmapImpl* bitmap, 58 WebExternalBitmapImpl* bitmap,
59 unsigned sync_point, 59 const gpu::SyncToken& sync_token,
60 bool lost_resource); 60 bool lost_resource);
61 61
62 WebExternalBitmapImpl* AllocateBitmap(); 62 WebExternalBitmapImpl* AllocateBitmap();
63 63
64 blink::WebExternalTextureLayerClient* client_; 64 blink::WebExternalTextureLayerClient* client_;
65 scoped_ptr<WebLayerImpl> layer_; 65 scoped_ptr<WebLayerImpl> layer_;
66 ScopedVector<WebExternalBitmapImpl> free_bitmaps_; 66 ScopedVector<WebExternalBitmapImpl> free_bitmaps_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl); 68 DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl);
69 }; 69 };
70 70
71 } // namespace cc_blink 71 } // namespace cc_blink
72 72
73 #endif // CC_BLINK_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_ 73 #endif // CC_BLINK_WEB_EXTERNAL_TEXTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/DEPS ('k') | cc/blink/web_external_texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698