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

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

Issue 1194743002: cc: Remove ResourceUpdateQueue and ResourceUpdateController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resourcequeue: header Created 5 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 | « cc/BUILD.gn ('k') | cc/cc.gyp » ('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 #include "cc/blink/web_external_texture_layer_impl.h" 5 #include "cc/blink/web_external_texture_layer_impl.h"
6 6
7 #include "cc/blink/web_external_bitmap_impl.h" 7 #include "cc/blink/web_external_bitmap_impl.h"
8 #include "cc/blink/web_layer_impl.h" 8 #include "cc/blink/web_layer_impl.h"
9 #include "cc/layers/texture_layer.h" 9 #include "cc/layers/texture_layer.h"
10 #include "cc/resources/resource_update_queue.h"
11 #include "cc/resources/single_release_callback.h" 10 #include "cc/resources/single_release_callback.h"
12 #include "cc/resources/texture_mailbox.h" 11 #include "cc/resources/texture_mailbox.h"
13 #include "third_party/WebKit/public/platform/WebExternalTextureLayerClient.h" 12 #include "third_party/WebKit/public/platform/WebExternalTextureLayerClient.h"
14 #include "third_party/WebKit/public/platform/WebExternalTextureMailbox.h" 13 #include "third_party/WebKit/public/platform/WebExternalTextureMailbox.h"
15 #include "third_party/WebKit/public/platform/WebFloatRect.h" 14 #include "third_party/WebKit/public/platform/WebFloatRect.h"
16 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 15 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
17 #include "third_party/WebKit/public/platform/WebSize.h" 16 #include "third_party/WebKit/public/platform/WebSize.h"
18 #include "third_party/khronos/GLES2/gl2.h" 17 #include "third_party/khronos/GLES2/gl2.h"
19 18
20 using cc::TextureLayer; 19 using cc::TextureLayer;
21 using cc::ResourceUpdateQueue;
22 20
23 namespace cc_blink { 21 namespace cc_blink {
24 22
25 WebExternalTextureLayerImpl::WebExternalTextureLayerImpl( 23 WebExternalTextureLayerImpl::WebExternalTextureLayerImpl(
26 blink::WebExternalTextureLayerClient* client) 24 blink::WebExternalTextureLayerClient* client)
27 : client_(client) { 25 : client_(client) {
28 cc::TextureLayerClient* cc_client = client_ ? this : nullptr; 26 cc::TextureLayerClient* cc_client = client_ ? this : nullptr;
29 scoped_refptr<TextureLayer> layer = 27 scoped_refptr<TextureLayer> layer =
30 TextureLayer::CreateForMailbox(WebLayerImpl::LayerSettings(), cc_client); 28 TextureLayer::CreateForMailbox(WebLayerImpl::LayerSettings(), cc_client);
31 layer->SetIsDrawable(true); 29 layer->SetIsDrawable(true);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 DCHECK(layer); 121 DCHECK(layer);
124 blink::WebExternalTextureMailbox available_mailbox; 122 blink::WebExternalTextureMailbox available_mailbox;
125 memcpy(available_mailbox.name, mailbox.name, sizeof(available_mailbox.name)); 123 memcpy(available_mailbox.name, mailbox.name, sizeof(available_mailbox.name));
126 available_mailbox.syncPoint = sync_point; 124 available_mailbox.syncPoint = sync_point;
127 if (bitmap) 125 if (bitmap)
128 layer->free_bitmaps_.push_back(bitmap); 126 layer->free_bitmaps_.push_back(bitmap);
129 layer->client_->mailboxReleased(available_mailbox, lost_resource); 127 layer->client_->mailboxReleased(available_mailbox, lost_resource);
130 } 128 }
131 129
132 } // namespace cc_blink 130 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698