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

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

Issue 101223005: Plumbing explicit share groups through context creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Large rebase Created 6 years, 10 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 | 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/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 limits.min_transfer_buffer_size = 64 * 1024; 392 limits.min_transfer_buffer_size = 64 * 1024;
393 limits.max_transfer_buffer_size = std::min( 393 limits.max_transfer_buffer_size = std::min(
394 3 * full_screen_texture_size_in_bytes, kDefaultMaxTransferBufferSize); 394 3 * full_screen_texture_size_in_bytes, kDefaultMaxTransferBufferSize);
395 limits.mapped_memory_reclaim_limit = 2 * 1024 * 1024; 395 limits.mapped_memory_reclaim_limit = 2 * 1024 * 1024;
396 return make_scoped_ptr( 396 return make_scoped_ptr(
397 new WebGraphicsContext3DCommandBufferImpl(surface_id, 397 new WebGraphicsContext3DCommandBufferImpl(surface_id,
398 url, 398 url,
399 gpu_channel_host.get(), 399 gpu_channel_host.get(),
400 attributes, 400 attributes,
401 false, 401 false,
402 limits)); 402 limits,
403 NULL));
403 } 404 }
404 405
405 scoped_ptr<cc::OutputSurface> CompositorImpl::CreateOutputSurface( 406 scoped_ptr<cc::OutputSurface> CompositorImpl::CreateOutputSurface(
406 bool fallback) { 407 bool fallback) {
407 blink::WebGraphicsContext3D::Attributes attrs; 408 blink::WebGraphicsContext3D::Attributes attrs;
408 attrs.shareResources = true; 409 attrs.shareResources = true;
409 attrs.noAutomaticFlushes = true; 410 attrs.noAutomaticFlushes = true;
410 411
411 DCHECK(window_); 412 DCHECK(window_);
412 DCHECK(surface_id_); 413 DCHECK(surface_id_);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 void CompositorImpl::DidAbortSwapBuffers() { 456 void CompositorImpl::DidAbortSwapBuffers() {
456 TRACE_EVENT0("compositor", "CompositorImpl::DidAbortSwapBuffers"); 457 TRACE_EVENT0("compositor", "CompositorImpl::DidAbortSwapBuffers");
457 client_->OnSwapBuffersCompleted(); 458 client_->OnSwapBuffersCompleted();
458 } 459 }
459 460
460 void CompositorImpl::DidCommit() { 461 void CompositorImpl::DidCommit() {
461 root_window_->OnCompositingDidCommit(); 462 root_window_->OnCompositingDidCommit();
462 } 463 }
463 464
464 } // namespace content 465 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698