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

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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 return view_->GetNativeViewId(); 344 return view_->GetNativeViewId();
345 return 0; 345 return 0;
346 } 346 }
347 347
348 gfx::GLSurfaceHandle RenderWidgetHostImpl::GetCompositingSurface() { 348 gfx::GLSurfaceHandle RenderWidgetHostImpl::GetCompositingSurface() {
349 if (view_) 349 if (view_)
350 return view_->GetCompositingSurface(); 350 return view_->GetCompositingSurface();
351 return gfx::GLSurfaceHandle(); 351 return gfx::GLSurfaceHandle();
352 } 352 }
353 353
354 void RenderWidgetHostImpl::CompositingSurfaceUpdated() {
355 GpuSurfaceTracker::Get()->SetSurfaceHandle(
356 surface_id_, GetCompositingSurface());
357 process_->SurfaceUpdated(surface_id_);
358 }
359
360 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() { 354 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() {
361 resize_ack_pending_ = false; 355 resize_ack_pending_ = false;
362 if (repaint_ack_pending_) { 356 if (repaint_ack_pending_) {
363 TRACE_EVENT_ASYNC_END0( 357 TRACE_EVENT_ASYNC_END0(
364 "renderer_host", "RenderWidgetHostImpl::repaint_ack_pending_", this); 358 "renderer_host", "RenderWidgetHostImpl::repaint_ack_pending_", this);
365 } 359 }
366 repaint_ack_pending_ = false; 360 repaint_ack_pending_ = false;
367 last_requested_size_.SetSize(0, 0); 361 last_requested_size_.SetSize(0, 0);
368 } 362 }
369 363
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 continue; 2489 continue;
2496 } 2490 }
2497 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); 2491 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh);
2498 if (rwhi_set.insert(rwhi).second) 2492 if (rwhi_set.insert(rwhi).second)
2499 rwhi->FrameSwapped(latency_info); 2493 rwhi->FrameSwapped(latency_info);
2500 } 2494 }
2501 } 2495 }
2502 } 2496 }
2503 2497
2504 } // namespace content 2498 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698