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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 2129523003: Remove more GpuMemoryBufferId plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <OpenGL/gl.h> 8 #include <OpenGL/gl.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 return results; 398 return results;
399 } 399 }
400 400
401 } // namespace 401 } // namespace
402 402
403 namespace content { 403 namespace content {
404 404
405 //////////////////////////////////////////////////////////////////////////////// 405 ////////////////////////////////////////////////////////////////////////////////
406 // DelegatedFrameHost, public: 406 // DelegatedFrameHost, public:
407 407
408 int RenderWidgetHostViewMac::DelegatedFrameHostGetGpuMemoryBufferClientId()
409 const {
410 return render_widget_host_->GetProcess()->GetID();
411 }
412
413 ui::Layer* RenderWidgetHostViewMac::DelegatedFrameHostGetLayer() const { 408 ui::Layer* RenderWidgetHostViewMac::DelegatedFrameHostGetLayer() const {
414 return browser_compositor_->GetRootLayer(); 409 return browser_compositor_->GetRootLayer();
415 } 410 }
416 411
417 bool RenderWidgetHostViewMac::DelegatedFrameHostIsVisible() const { 412 bool RenderWidgetHostViewMac::DelegatedFrameHostIsVisible() const {
418 return !render_widget_host_->is_hidden(); 413 return !render_widget_host_->is_hidden();
419 } 414 }
420 415
421 SkColor RenderWidgetHostViewMac::DelegatedFrameHostGetGutterColor( 416 SkColor RenderWidgetHostViewMac::DelegatedFrameHostGetGutterColor(
422 SkColor color) const { 417 SkColor color) const {
(...skipping 2884 matching lines...) Expand 10 before | Expand all | Expand 10 after
3307 3302
3308 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3303 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3309 // regions that are not draggable. (See ControlRegionView in 3304 // regions that are not draggable. (See ControlRegionView in
3310 // native_app_window_cocoa.mm). This requires the render host view to be 3305 // native_app_window_cocoa.mm). This requires the render host view to be
3311 // draggable by default. 3306 // draggable by default.
3312 - (BOOL)mouseDownCanMoveWindow { 3307 - (BOOL)mouseDownCanMoveWindow {
3313 return YES; 3308 return YES;
3314 } 3309 }
3315 3310
3316 @end 3311 @end
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698