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

Side by Side Diff: content/browser/renderer_host/image_transport_factory_android.cc

Issue 57543004: Don't test kEnableThreadedCompositing in WebGraphicsContext3DCommandBufferImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/browser/renderer_host/image_transport_factory_android.h" 5 #include "content/browser/renderer_host/image_transport_factory_android.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 9 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
10 #include "content/common/gpu/client/gl_helper.h" 10 #include "content/common/gpu/client/gl_helper.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 limits.min_transfer_buffer_size = 64 * 1024; 77 limits.min_transfer_buffer_size = 64 * 1024;
78 limits.max_transfer_buffer_size = std::min( 78 limits.max_transfer_buffer_size = std::min(
79 3 * full_screen_texture_size_in_bytes, kDefaultMaxTransferBufferSize); 79 3 * full_screen_texture_size_in_bytes, kDefaultMaxTransferBufferSize);
80 limits.mapped_memory_reclaim_limit = 80 limits.mapped_memory_reclaim_limit =
81 WebGraphicsContext3DCommandBufferImpl::kNoLimit; 81 WebGraphicsContext3DCommandBufferImpl::kNoLimit;
82 context_.reset( 82 context_.reset(
83 new WebGraphicsContext3DCommandBufferImpl(0, // offscreen 83 new WebGraphicsContext3DCommandBufferImpl(0, // offscreen
84 url, 84 url,
85 gpu_channel_host.get(), 85 gpu_channel_host.get(),
86 swap_client, 86 swap_client,
87 true,
87 attrs, 88 attrs,
88 false, 89 false,
89 limits)); 90 limits));
90 context_->setContextLostCallback(context_lost_listener_.get()); 91 context_->setContextLostCallback(context_lost_listener_.get());
91 if (context_->makeContextCurrent()) 92 if (context_->makeContextCurrent())
92 context_->pushGroupMarkerEXT( 93 context_->pushGroupMarkerEXT(
93 base::StringPrintf("CmdBufferImageTransportFactory-%p", 94 base::StringPrintf("CmdBufferImageTransportFactory-%p",
94 context_.get()).c_str()); 95 context_.get()).c_str());
95 } 96 }
96 97
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 186
186 void GLContextLostListener::DidLoseContext() { 187 void GLContextLostListener::DidLoseContext() {
187 delete g_factory; 188 delete g_factory;
188 g_factory = NULL; 189 g_factory = NULL;
189 FOR_EACH_OBSERVER(ImageTransportFactoryAndroidObserver, 190 FOR_EACH_OBSERVER(ImageTransportFactoryAndroidObserver,
190 g_factory_observers.Get(), 191 g_factory_observers.Get(),
191 OnLostResources()); 192 OnLostResources());
192 } 193 }
193 194
194 } // namespace content 195 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698