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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 const gfx::Size& size, 196 const gfx::Size& size,
197 skia::PlatformCanvas* output, 197 skia::PlatformCanvas* output,
198 base::Callback<void(bool)> callback) OVERRIDE; 198 base::Callback<void(bool)> callback) OVERRIDE;
199 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 199 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
200 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, 200 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type,
201 bool processed) OVERRIDE; 201 bool processed) OVERRIDE;
202 virtual void SetHasHorizontalScrollbar( 202 virtual void SetHasHorizontalScrollbar(
203 bool has_horizontal_scrollbar) OVERRIDE; 203 bool has_horizontal_scrollbar) OVERRIDE;
204 virtual void SetScrollOffsetPinning( 204 virtual void SetScrollOffsetPinning(
205 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 205 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
206 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
207 virtual void AcceleratedSurfaceBuffersSwapped( 206 virtual void AcceleratedSurfaceBuffersSwapped(
208 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 207 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
209 int gpu_host_id) OVERRIDE; 208 int gpu_host_id) OVERRIDE;
210 virtual void AcceleratedSurfacePostSubBuffer( 209 virtual void AcceleratedSurfacePostSubBuffer(
211 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 210 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
212 int gpu_host_id) OVERRIDE; 211 int gpu_host_id) OVERRIDE;
213 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 212 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
214 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; 213 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
215 virtual void OnAccessibilityNotifications( 214 virtual void OnAccessibilityNotifications(
216 const std::vector<AccessibilityHostMsg_NotificationParams>& params 215 const std::vector<AccessibilityHostMsg_NotificationParams>& params
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 bool received_focus_change_after_pointer_down_; 551 bool received_focus_change_after_pointer_down_;
553 552
554 // Region in which the view will be transparent to clicks. 553 // Region in which the view will be transparent to clicks.
555 scoped_ptr<SkRegion> transparent_region_; 554 scoped_ptr<SkRegion> transparent_region_;
556 555
557 // Are touch events currently enabled? 556 // Are touch events currently enabled?
558 bool touch_events_enabled_; 557 bool touch_events_enabled_;
559 558
560 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 559 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
561 560
561 class CompositingDelegateWin : public CompositingDelegate {
562 public:
563 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
564 virtual bool ResizeNeedsNewSurface() OVERRIDE;
565
566 private:
567 friend class RenderWidgetHostViewWin;
568 CompositingDelegateWin(RenderWidgetHostViewWin* view)
569 : view_(view)
570 {}
571 RenderWidgetHostViewWin* view_;
572 };
573
562 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 574 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
563 }; 575 };
564 576
565 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 577 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698