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

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

Issue 15001027: [Aura] Added Support for rendering software compositor frames as cc::TextureLayers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed DuplicateHandle on Windows. Created 7 years, 7 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "cc/resources/texture_mailbox.h"
18 #include "content/browser/accessibility/browser_accessibility_manager.h" 19 #include "content/browser/accessibility/browser_accessibility_manager.h"
19 #include "content/browser/renderer_host/image_transport_factory.h" 20 #include "content/browser/renderer_host/image_transport_factory.h"
20 #include "content/browser/renderer_host/render_widget_host_view_base.h" 21 #include "content/browser/renderer_host/render_widget_host_view_base.h"
21 #include "content/common/content_export.h" 22 #include "content/common/content_export.h"
22 #include "third_party/skia/include/core/SkRegion.h" 23 #include "third_party/skia/include/core/SkRegion.h"
23 #include "ui/aura/client/activation_change_observer.h" 24 #include "ui/aura/client/activation_change_observer.h"
24 #include "ui/aura/client/activation_delegate.h" 25 #include "ui/aura/client/activation_delegate.h"
25 #include "ui/aura/client/cursor_client_observer.h" 26 #include "ui/aura/client/cursor_client_observer.h"
26 #include "ui/aura/client/focus_change_observer.h" 27 #include "ui/aura/client/focus_change_observer.h"
27 #include "ui/aura/root_window_observer.h" 28 #include "ui/aura/root_window_observer.h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 const scoped_refptr<ui::Texture>& texture_to_return); 467 const scoped_refptr<ui::Texture>& texture_to_return);
467 468
468 void SwapDelegatedFrame( 469 void SwapDelegatedFrame(
469 scoped_ptr<cc::DelegatedFrameData> frame_data, 470 scoped_ptr<cc::DelegatedFrameData> frame_data,
470 float frame_device_scale_factor); 471 float frame_device_scale_factor);
471 void SendDelegatedFrameAck(); 472 void SendDelegatedFrameAck();
472 473
473 void SwapSoftwareFrame( 474 void SwapSoftwareFrame(
474 scoped_ptr<cc::SoftwareFrameData> frame_data, 475 scoped_ptr<cc::SoftwareFrameData> frame_data,
475 float frame_device_scale_factor); 476 float frame_device_scale_factor);
476 void SendSoftwareFrameAck(const TransportDIB::Id& id); 477 void SendSoftwareFrameAck(int id);
477 478
478 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); 479 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager();
479 480
480 #if defined(OS_WIN) 481 #if defined(OS_WIN)
481 // Sets the cutout rects from transient windows. These are rectangles that 482 // Sets the cutout rects from transient windows. These are rectangles that
482 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout 483 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
483 // rects. 484 // rects.
484 void UpdateTransientRects(const std::vector<gfx::Rect>& rects); 485 void UpdateTransientRects(const std::vector<gfx::Rect>& rects);
485 486
486 // Updates the total list of cutout rects, which is the union of transient 487 // Updates the total list of cutout rects, which is the union of transient
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 bool has_composition_text_; 545 bool has_composition_text_;
545 546
546 // Current tooltip text. 547 // Current tooltip text.
547 string16 tooltip_; 548 string16 tooltip_;
548 549
549 std::vector<base::Closure> on_compositing_did_commit_callbacks_; 550 std::vector<base::Closure> on_compositing_did_commit_callbacks_;
550 551
551 // The current frontbuffer texture. 552 // The current frontbuffer texture.
552 scoped_refptr<ui::Texture> current_surface_; 553 scoped_refptr<ui::Texture> current_surface_;
553 554
554 // The current frontbuffer DIB. 555 // The current frontbuffer shared memory.
555 scoped_ptr<TransportDIB> current_dib_; 556 cc::TextureMailbox current_frame_;
556 557
557 // The current DIB id as it was received from the renderer. Note that on 558 // Device scale factor in which current_frame_ was rendered.
558 // some platforms (e.g. Windows) this is different from current_dib_->id(). 559 float current_frame_scale_factor_;
559 TransportDIB::Id current_dib_id_;
560 560
561 // The damage in the previously presented buffer. 561 // The damage in the previously presented buffer.
562 SkRegion previous_damage_; 562 SkRegion previous_damage_;
563 563
564 // Pending damage from previous frames that we skipped. 564 // Pending damage from previous frames that we skipped.
565 SkRegion skipped_damage_; 565 SkRegion skipped_damage_;
566 566
567 // The size of the last frame that was swapped (even if we skipped it). 567 // The size of the last frame that was swapped (even if we skipped it).
568 // Used to determine when the skipped_damage_ needs to be reset due to 568 // Used to determine when the skipped_damage_ needs to be reset due to
569 // size changes between front- and backbuffer. 569 // size changes between front- and backbuffer.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 664 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
665 665
666 TouchEditingClient* touch_editing_client_; 666 TouchEditingClient* touch_editing_client_;
667 667
668 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 668 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
669 }; 669 };
670 670
671 } // namespace content 671 } // namespace content
672 672
673 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 673 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698