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

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

Issue 111063003: Aura: Don't create GL context for CreateSharedSurfaceHandle() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try to make tests happy by still creating shared context Created 6 years, 11 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/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 return view_->GetNativeViewId(); 352 return view_->GetNativeViewId();
353 return 0; 353 return 0;
354 } 354 }
355 355
356 gfx::GLSurfaceHandle RenderWidgetHostImpl::GetCompositingSurface() { 356 gfx::GLSurfaceHandle RenderWidgetHostImpl::GetCompositingSurface() {
357 if (view_) 357 if (view_)
358 return view_->GetCompositingSurface(); 358 return view_->GetCompositingSurface();
359 return gfx::GLSurfaceHandle(); 359 return gfx::GLSurfaceHandle();
360 } 360 }
361 361
362 void RenderWidgetHostImpl::CompositingSurfaceUpdated() {
363 GpuSurfaceTracker::Get()->SetSurfaceHandle(
364 surface_id_, GetCompositingSurface());
365 process_->SurfaceUpdated(surface_id_);
366 }
367
368 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() { 362 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() {
369 resize_ack_pending_ = false; 363 resize_ack_pending_ = false;
370 if (repaint_ack_pending_) { 364 if (repaint_ack_pending_) {
371 TRACE_EVENT_ASYNC_END0( 365 TRACE_EVENT_ASYNC_END0(
372 "renderer_host", "RenderWidgetHostImpl::repaint_ack_pending_", this); 366 "renderer_host", "RenderWidgetHostImpl::repaint_ack_pending_", this);
373 } 367 }
374 repaint_ack_pending_ = false; 368 repaint_ack_pending_ = false;
375 last_requested_size_.SetSize(0, 0); 369 last_requested_size_.SetSize(0, 0);
376 } 370 }
377 371
(...skipping 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 continue; 2462 continue;
2469 } 2463 }
2470 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); 2464 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh);
2471 if (rwhi_set.insert(rwhi).second) 2465 if (rwhi_set.insert(rwhi).second)
2472 rwhi->FrameSwapped(latency_info); 2466 rwhi->FrameSwapped(latency_info);
2473 } 2467 }
2474 } 2468 }
2475 } 2469 }
2476 2470
2477 } // namespace content 2471 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698