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

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: Created 7 years 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 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 continue; 2460 continue;
2467 } 2461 }
2468 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); 2462 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh);
2469 if (rwhi_set.insert(rwhi).second) 2463 if (rwhi_set.insert(rwhi).second)
2470 rwhi->FrameSwapped(latency_info); 2464 rwhi->FrameSwapped(latency_info);
2471 } 2465 }
2472 } 2466 }
2473 } 2467 }
2474 2468
2475 } // namespace content 2469 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698